Heat oil: In a medium saucepan over medium heat, add olive oil.
Sauté aromatics: Add minced garlic (and onion if using), and sauté for 2–3 minutes until fragrant.
Add tomatoes: Pour in the crushed tomatoes and tomato paste. Stir well.
Season the sauce: Mix in oregano, basil, salt, pepper, and red pepper flakes.
Simmer: Let the sauce simmer uncovered for 15–20 minutes, stirring occasionally.
Enrich the flavor: Stir in butter or heavy cream to add richness and balance acidity.
Optional: Blend the sauce for a smoother texture using an immersion blender.
Add cheese: Mix in parmesan cheese for extra flavor and creaminess.
Rest: Let the sauce rest for 5 minutes before serving to deepen the flavor.
Serve: Pair with keto noodles or use as a topping for casseroles and pizzas.