Preheat your oven to 375°F (190°C). Grease a 9x13-inch baking dish with a little olive oil.
In a large mixing bowl, combine the sliced zucchini, cherry tomatoes, corn, minced garlic, salt, black pepper, and red pepper flakes (if using). Toss well to combine.
Spread the vegetable mixture evenly in the prepared baking dish.
In a separate bowl, mix together the cheddar cheese, Parmesan cheese, breadcrumbs, and basil. Sprinkle this cheese mixture evenly over the vegetables in the baking dish.
Drizzle the olive oil over the top of the cheese and breadcrumb mixture.
Bake in the preheated oven for 25-30 minutes, or until the cheese is bubbly and golden brown, and the zucchini is tender.
Allow to cool for a few minutes before serving.