Microsoft released Visual Studio 2022 in different editions.
Microsoft Visual Studio 2022 Community is free, we need to purchase Professional and Enterprise editions to use. Based on our usage, we can select any one of these flavors. For most of the development work, the Community edition is sufficient and it is free. Download VS 2022 community edition at https://visualstudio.microsoft.com/vs/community/