Preheat oven to 400 and remove phyllo dough from freezer to thaw.
Thinly slice shallots and add to a skillet with 2 tbsp butter, a pinch of salt and pepper. Cook stirring often on medium to low heat for about 15 min or until the shallots are cooked down and a deep brown.
Add all filling ingredients to a bowl and mix to combine.
Melt remaining butter and brush one sheet of phyllo dough. Add another sheet on top and repeat with remaining 5 layers, brushing with butter between each layer.
Slice and season tomatoes with olive oil, salt and pepper. After a few minutes the tomatoes will remove some excess liquid, make sure to pat down before adding to the tart.
Add filling to the middle and then layer the sliced tomatoes in a circular pattern. Cut the larger tomatoes into smaller pieces if needed. Crinkle the phyllo dough in on each side to create the crust. If the dough is flaking, add a little melted butter to those edges. Brush the top with more butter and sprinkle with more thyme leaves.
Bake for about 30 min or until nicely golden brown. Drizzle the top with balsamic glaze, basil and flaky sea salt. Enjoy!