Preheat the oven to 425°F (220°C). Lightly grease a baking dish (about 9x13 inches).
Roast the tomatoes. In a bowl, toss halved cherry tomatoes with olive oil, minced garlic, Italian seasoning, red pepper flakes (if using), salt, and pepper. Spread on a sheet pan or bake in the same dish if preferred. Roast for 15–18 minutes until juicy and slightly blistered. Stir once halfway.
Cook the pasta. Boil pasta in salted water according to package directions until al dente. Drain, then reserve about 1/2 cup pasta water.
Mix the ricotta filling. In a bowl, combine ricotta, egg, Parmesan, herbs, salt, and pepper. Add lemon zest if you like a brighter flavor.
Make the breadcrumbs. Stir breadcrumbs with olive oil, Parmesan, garlic powder (or garlic), salt, and pepper until evenly coated.
Assemble the pasta. Add cooked pasta to a large bowl and gently fold in the roasted tomatoes (use some of the tomato juices too). Add a splash of reserved pasta water to loosen if needed.
Layer and bake. Spread half the pasta mixture into your baking dish. Dollop the ricotta over the top, then add remaining pasta. Sprinkle with breadcrumb topping and finish with a little extra Parmesan if you want.
Bake until bubbly and golden. Bake 20–25 minutes until the edges bubble and the topping turns crisp.
Rest before serving. Let it sit 5 minutes so the layers set up nicely, then serve hot.