Don't use this, use a Proxy when possible.
npm i parse-object-lookup-string
# yarn add parse-object-lookup-string
import parse from 'parse-object-lookup-string';
expect(parse('?.["123"].one?.[`\\``]')).toEqual([
{ key: '123', optional: true },
{ key: 'one', optional: false },
{ key: '`', optional: true },
]);