Editor Not Getting Visual Studio to Run

Trying to open a C# script in VS 2015…2019…2022, but Visual Studio fails to run.
Is this a bug?

You might need to generate script project files (File → Generate script project files) probably so the file is in the Visual Studio project.

I have tried that. It didn’t work.
I think the problem is Flax not knowing which version of VS to choose, since the VS Version Selector is probably what it’s finding in the registry key… I’m guessing.