I hade the same problem, uses the latest VS 2022 version 17.12.4 and updating the 'Manage Azure Functions toolsets and templates' helped me to get the .NET 9 options.
The update is located at: tools -> options -> Project ans Solutions -> Azure Functions. And the press the 'Check for updates' button.