'Problem with creating a C# class from template in Visual Studio 2022

I'm having an issue with Visual Studio 2022. After using template to create a class/interface the code is generated with an error. There is no whitespace between "internal" and "class". The problem is hapenning with one particular project. When I createad a file in a new project the problem did't occur. Did anyone experience this issue as well and has a solution?

Screenshot - "internalclass"

EDIT:

Fixed using solution from this post.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source