Prepare the vegetables: halve the cherry tomatoes, chop the onion and red bell pepper, mince the garlic, and finely chop the basil.
Heat half of the olive oil in a large skillet over medium heat. Add the onion and cook for 2–3 minutes until softened.
Add the red bell pepper and cherry tomatoes. Cook for another 2–3 minutes until the vegetables soften but still hold their shape.
Stir in the corn and white beans. Season with half of the salt and pepper, increase the heat slightly, and cook for 2–3 minutes until excess moisture evaporates. Transfer the vegetables to a separate bowl.
Add the remaining olive oil to the same skillet. Briefly sauté the garlic until fragrant.
Add the shrimp and cook for 2–3 minutes until they turn pink and curl. (If using frozen shrimp, add directly, increase heat to evaporate excess liquid, then continue cooking.)
Return the vegetables to the skillet, add the basil, and gently stir everything together. Cook for another 1–2 minutes to combine the flavors.