Half the cherry tomatoes and place them on a large sheet pan. Add the big chunks of onion and the garlic cloves. Drizzle with olive oil and sprinkle with salt, basil, thyme, black pepper, and chili pepper flakes if you want the sauce to be spicy.
Roast the cherry tomatoes for 25-30 minutes.
Meanwhile, bring a large pot of salter water to boil
Let cool slightly, then squeeze out the garlic to remove the peel. Transfer everything to a blender and blend until you get a smooth sauce.
Cook the pasta al dente and drain it. Add it to the pot with the sauce and combine. Adjust the seasonings to taste.
Serve with a drizzle of olive oil and a sprinkle of Parmesan cheese if you want.
Notes
You can also add more varieties of tomatoes to the baking sheet if you don't have enough cherry tomatoes.You can store the sauce in the fridge for up to 5 days or in the freezer for up to 3 months.