Turn on the Instant Pot and select Sauté mode at medium heat.
Once it says HOT, pour in 1 tablespoon of olive oil and let it heat up for a bit.
Toss in the garlic and cook until it smells nice, around 30 seconds.
Add the chopped onions and cook until they're kind of see-through.
Pour in the canned tomatoes and let them cook for 3-4 minutes.
Blend everything in the Instant Pot until it's a bit chunky but not too smooth. You can also use a blender if you want.
Sprinkle in the red chili flakes, Italian seasoning, salt, pepper, and sugar. Taste it to check if it's yummy enough.
Pour in the vegetable broth and uncooked macaroni pasta, making sure the pasta is under the liquid.
Drizzle in the remaining 2 tablespoons of olive oil and give it a gentle stir.
Turn off Sauté mode by pressing Cancel. Set it to Manual on High Pressure for 3 minutes.
Close the lid and set the valve to Sealing.
Let the pressure release naturally for 5 minutes, then carefully move the valve to Venting to release the rest of the pressure.
Open the lid and give it a light stir.
Sprinkle some chopped basil and grated Parmesan cheese on top.
Serve it up while it's still warm and tasty!