Unusual "find" error in Typescript. Why ; is a problem?

You cannot have ?[] right next to each other. You have to put a . in between like this:

buyTicketData?.pricingOptions?.[key]?.name

See MDN