It seems I made a typo in the connection string:
scaffold-DbContext 'Server=Servername; Database=pubs;Integrated Security=true; TustServerCertificate=true' Microsoft.EntityFrameworkCore.SqlServer
The Northwind sample db I was trying to scaffold was named 'pubs' not pub. For anyone else trying to follow this tutorial, locally, you will need to have the TustServerCertificate attribute set to true for development purposes. The server is often your computer name unless it is named otherwise and If you're using windows authentication you'll need to have the 'Intergrated Security' attribute set to true.