In a large pot, bring salted water to a boil. Add the rigatoni and cook until al dente according to the package instructions. Reserve about 1 cup of pasta water, then drain the pasta.
In a large skillet, heat the olive oil over medium heat. Add the minced garlic and sauté until fragrant, about 30 seconds. Be careful not to burn it.
Add the crushed San Marzano tomatoes to the skillet along with the sugar, salt, and pepper. Simmer the sauce for about 15 minutes until it thickens and the flavors meld.
Add the cooked pasta to the sauce. If the sauce is too thick, use some reserved pasta water to loosen it. Mix well to ensure the pasta is evenly coated.
Stir in the diced fresh mozzarella and half of the grated Parmigiano-Reggiano cheese. Allow the cheese to melt slightly into the pasta.
For a baked version, transfer the pasta mixture to a greased baking dish, sprinkle the remaining Parmigiano-Reggiano on top, and bake in a preheated oven at 180°C (350°F) for 15-20 minutes until golden and bubbly.
Plate the Pasta alla Sorrentina warm, garnished with fresh basil leaves.
Notes
Serve in large bowls or individual plates, and drizzle with a bit of extra virgin olive oil for added flavor. Garnish with fresh basil for a pop of color.