In Visual Studio 2022 17.12.4, the "Paste Special" option currently exists in the "ASP.NET and web development" section which may have not been installed if you have only installed the local development sections.
To verify this, follow these steps:
1.) Open Tools -> Get Tools and Features
2.) Tick the "ASP.NET and web development" section if it has not been done so.
3.) Click "Modify", and wait for the installation to complete (Saving and closing your project may be required)
4.) Close, and re-launch Visual Studio.
If this section has been installed, the answer by Igor Ilyichyov can be followed (Extensions -> Customize Menu -> Commands -> Menu Bar -> Edit -> Add Command -> Edit -> Paste {JSON/XML} as Classes)