I have the same issue as the OP.
I am using Visual Studio Pro 2022, 17.9.3
Trying to create a project using the "Angular and ASP.NET Core" template.
I get: Illegal characters in path.
It creates some folders and a .sln file, but the .sln file is empty
there are no files in the folders it creates.