Cook pasta according to package instructions until al dente. Drain and set aside.
Heat olive oil in a skillet over medium heat. Sauté onions until soft, about 3 minutes.
Add garlic and cook for 30 seconds until fragrant.
Stir in tomato passata, Italian herbs, salt, pepper, and red pepper flakes. Simmer for 8–10 minutes.
Reduce heat to low and stir in the ricotta cheese until creamy and well combined.
Add the cooked pasta to the skillet and toss to coat in the sauce.
Serve immediately topped with grated parmesan and fresh basil.