Thanks for your question.
I have checked in my Azure portal and could see Server parameter "optimizer_switch" for MySQL Flexible server.
May I please know which region and version your server is in? If possible, please share a screenshot of the server parameter.
Thank you!