A project is not being created in Unreal Engine 5

Hey folks, this issue is still happening in 5.2. For me it happens when creating a new C++ project from scratch. You can see it finds a 14.30 version but still fails.

Generating VisualStudio2022 project files:
Discovering modules, targets and source code for project...
...
 * C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705
    (Family=14.30.30705, FamilyRank=2, Version=14.30.30712, Is64Bit=True, Preview=False, Architecture=x64, Error=False)
Unable to find valid 14.30 toolchain for VisualStudio2022 x64

I made sure that the correct versions are installed in Visual Studio Installer

@FrostyJas I see there’s another thread that suggest editing a source file, but that didn’t work for me.

Does anyone see a simpler fix?