Start with sautéing the onion in oil. Once they become translucent, add garlic. Cook it until you get a fragrance.
Now add the tomato paste and stir the mixture. Let it cook until you get a deeper color.
After the color deepens, pour the white wine. Mix everything and let the mixture simmer for 2 to 3 minutes.
Now add the diced tomatoes and stir again.
Reduce the heat, and meanwhile add parsley, chili flakes, salt, and pepper. Stir it for the third time and let the mixture simmer for 20 to 30 minutes.
If you want, you can blend everything to get a smooth consistency.
Put some basil leaves over the sauce and adjust seasonings if needed.
You can store the sauce in the refrigerator or freeze it for up to 1 week.