3. Step
Reduce heat to medium and add onions and garlic; cook, stirring often, until softened and starting to brown slightly, about 3 minutes. Add tomato paste and rosemary; cook, stirring constantly, until fragrant and the tomato paste darkens, about 1 minute. Stir in flour; cook, stirring constantly, until the vegetables are coated, about 1 minute.