Bring a large pot of salted water to a boil and cook the penne until al dente. Reserve 120 ml of pasta water, then drain.
Meanwhile, heat the olive oil in a large pan over medium heat. Add the garlic and chilli flakes and cook for 1 minute until fragrant, taking care not to burn the garlic.
Add the chopped tomatoes and tomato paste. Simmer for 12 to 15 minutes until the sauce thickens slightly.
Season with salt, pepper and sugar if needed. Stir in a splash of pasta water to loosen the sauce.
Add the drained penne to the sauce and toss for 1 to 2 minutes until well coated.
Serve hot with fresh basil and grated Pecorino Romano or Parmesan.