I forgot about how I run the scaffold command on my backend, it had the instance name included on it (mentioned by @AlwaysLearning). I just had to run the scaffold command again with the correct values to fix it, which is this:
dotnet ef dbcontext scaffold "Server=localhost,1433;Database=CanteenDB;User Id=sa;Password=******;TrustServerCertificate=True;" Microsoft.EntityFrameworkCore.SqlServer -o Entities --force