Heat olive oil in a large saucepan over medium heat. Cook shallots and red pepper flakes until softened, 2 to 3 minutes, stirring frequently.
Stir in remaining ingredients, except basil. Puree in saucepan with a hand-held immersion blender or puree in batches in a blender or food processor. Return to saucepan and heat through.