Preheat oven to 250. Peel garlic and wash tomatoes. To a large cocotte or oven safe glass dish, add garlic and tomatoes. Cover with oil and season with red pepper flakes, salt and pepper. Cover and bake in the oven for about 2 hours or until softened and bubbly. Let it cool.
Transfer tomatoes and garlic to a foot processor along with the butter and blend. Season with salt and pepper and taste test.
Shuck corn and add to boiling water for about 2-3 min. Remove and brush on the tomato garlic confit. Sprinkle with cheese and chopped scallions. Enjoy!