Heat oven to 375°F and lightly grease a small baking dish.
Drain the tomatoes very well; press with paper towels to remove excess liquid.
Beat cream cheese with sour cream until smooth and fluffy.
Stir in garlic, Italian seasoning, red pepper flakes, salt, and black pepper.
Fold in mozzarella, half the Parmesan, and the drained tomatoes until evenly mixed.
Spread into the baking dish, drizzle with olive oil, and sprinkle the remaining Parmesan on top.
Bake 18–20 minutes until hot and bubbly; broil 1–2 minutes to brown the top if desired.
Let rest 5 minutes, then top with green onions and basil. Serve warm with chips or toasted bread.