I just added the "Encrypt=True" and it worked.
FROM: "Server=LAPTOP-D82MD6F3\MSSQLSERVER2022;Database=SchoolDb;User Id=sa;Password=@Test123;TrustServerCertificate=True;"
TO: FROM: "Server=LAPTOP-D82MD6F3\MSSQLSERVER2022;Database=SchoolDb;User Id=sa;Password=@Test123;Encrypt=True;TrustServerCertificate=True;"