Heat olive oil in a medium saucepan over medium heat.
Add minced garlic and sauté for 1-2 minutes until fragrant.
Stir in the crushed tomatoes.
Add sugar, oregano, basil, salt, and pepper.
Mix well and bring the sauce to a simmer.
Reduce heat to low and let simmer for 20 minutes, stirring occasionally.
Taste and adjust seasoning if necessary.
Stir in red wine vinegar and red pepper flakes.
Remove from heat and let cool slightly.
Use immediately or store for later use.