Cannot create C++ project in unreal engine 5

Solutions I have tried:
-I have tried doing it in a 5.4 version of unreal and a 5.5 version of unreal.

  • I have done a clean install of VS 2022 with all required plugins
  • I have the buildconfiguration.xml that the unreal forums said deleting would fix