This is not supported in VS 2022. Instead open the nuget package manager console and type the following command for the project:
Scaffold-DbContext -provider Microsoft.EntityFrameworkCore.SqlServer -connection "Data Source=Your server; Initial Catalog=your database; trusted_connection=true"