Stir the flour, yeast, warm water, 2 tablespoons olive oil, and salt together in a bowl until a shaggy dough forms.
Knead the dough on a lightly floured surface for 5 minutes until smooth, then place it back in the bowl, cover, and let it rise for 1 hour until doubled.
Heat the oven to 425°F. Oil a baking sheet and press the dough out to a 9-by-12-inch rectangle.
Use your fingertips to make dimples across the surface. Scatter the roasted garlic cloves and rosemary evenly over the dough, then drizzle with the remaining tablespoon of olive oil.
Sprinkle the flaky sea salt on top and bake for 18 to 20 minutes until the edges turn golden.
Remove from the oven and let the focaccia cool for 5 minutes before slicing.