Preheat Your Oven: Set your oven to 450°F to get it ready for roasting.
Prepare the Vegetables: Toss the eggplant chunks and chili slices with the olive oil and ½ teaspoon of fine sea salt on one or two rimmed baking sheets. Spread the mixture evenly in a single layer, making sure the pieces aren’t crowded or overlapping.
Begin Roasting: Place the baking sheet in the oven and roast the eggplant for about 10 minutes, until the bottoms are golden. Flip the eggplant pieces over with a spatula and roast for another 5 minutes.
Add Corn and Finish Roasting: Sprinkle the corn kernels evenly over the eggplant, and return the baking sheet to the oven. Continue roasting for another 5–10 minutes, or until the eggplant is well-browned and tender, and the corn is plump and cooked through.
Combine and Season: Transfer the roasted eggplant and corn to a large shallow bowl. Grate or mince the garlic and add it along with a sprinkle of black pepper, torn mint leaves, and more olive oil and sea salt to taste. Toss everything gently until combined.
Serve with Ricotta: Add dollops of fresh ricotta over the top, scatter additional mint leaves and sliced chilies (if using), and finish with a sprinkle of flaky sea salt and more black pepper. Serve warm or hot for the best flavor.