Halve the cherry tomatoes and place them in a large bowl.
Dice the cucumber into bite-sized pieces and add to the bowl.
If using fresh corn, cut the kernels off the cob. Add corn to the bowl.
Finely chop the red onion and cilantro, and add them to the bowl.
In a small bowl, whisk together olive oil, lime juice, salt, pepper, and chili flakes if using.
Pour the dressing over the vegetables and gently toss to combine.
Let the salad rest for 5 minutes at room temperature to allow flavors to meld.
Stir once more, taste and adjust seasoning if needed, then serve.