Right-click on your project file with the .uproject extension. The top part of the context menu should look like this (you might need to click on Show more options first on Windows 11):

Then, click on Generate Visual Studio project files item.
You may be prompted to select your engine version. After that, the solution file should be located in the same folder your project file is located.