For pickled onion, combine vinegar, sugar, ¾ tsp sea salt flakes and 130ml water in a saucepan and bring to a simmer, stirring to dissolve sugar. Place shallot or onion in a heatproof bowl, pour in vinegar mixture, set aside to cool, then refrigerate overnight. Drain before serving.
For pie dough, place flour in an electric mixer fitted with a dough hook. Add oil, 290ml warm water and 2 tsp salt, and knead until very smooth and elastic (5-7 minutes). Wrap tightly in plastic wrap and set aside for 1 hour to rest.
Combine garlic and olive oil in a small saucepan over very low heat until garlic is light golden (25-35 minutes). Strain (reserve oil for another use) and set garlic aside to cool.
Preheat oven as hot as it will go (250C-275C fan-forced). Lightly grease two 25cm tart tins with removable bases with a little oil, or garlic oil if you like. Divide dough into 4 then, on an unfloured surface, roll 2 pieces to rounds the same size as the pie tins. Gently stretch dough on the work surface with your hands until almost see-through and large enough to cover tins, with dough overhanging. Place stretched dough into tins, pressing into the sides.
Divide cheddar and confit garlic between pie tins, making large clumps of cheese here and there – the differences in texture is what this pie is about – then season generously with ground black pepper and tomato powder. Roll and stretch remaining dough in the same manner as before and place over pie tins to make top crusts. Trim excess dough and pinch around edges to seal. Make a few small slits in the tops of the pies to allow steam to escape, brush olive oil over tops, season with sea salt and bake in centre of oven, swapping pies halfway, until golden, crisp and starting to blacken in spots (20-30 minutes, depending on how hot your oven will go).
Serve straight out of the oven topped with green leaves, with pickled onion and hot sauce served alongside.
