After years I let vs Code go and moved to Visual Studio 2022, I discovered it on the web by mistake the answer. the issue was that there was no .Net install, which is why the issue occurred. you can download it from here: https://dotnet.microsoft.com/en-us/download and it should fix the issue. even though I have found a solution, as a more experiment unity developer I suggest you today to move to Visual Studio 2022, it's much better