Line an 20 cm square baking pan with parchment paper, leaving enough overhang on two sides to lift the caramel out later. Lightly grease the parchment and set the pan aside near the stove.
Pour the heavy cream into a small saucepan and add the rosemary sprigs. Warm over low heat for 3 to 4 minutes until the cream is steaming but not boiling, then remove from the heat, cover, and let it steep for 15 minutes.
Strain the rosemary from the cream, pressing lightly on the sprigs to release flavor, then return the infused cream to the saucepan. Add the butter, fine sea salt, and vanilla extract. Warm over low heat just until the butter melts, then keep the mixture warm on the lowest heat setting.
In a medium heavy-bottomed saucepan, combine the granulated sugar, corn syrup, and water. Cook over medium heat, stirring gently only until the sugar dissolves. Once dissolved, stop stirring and let the syrup cook until it turns a medium amber color, swirling the pan occasionally for even coloring.
Carefully and slowly pour the warm cream mixture into the amber syrup. The mixture will bubble vigorously, so add it in a thin stream while standing back. Stir gently with a heatproof spatula until smooth.
Attach a candy thermometer and continue cooking the caramel over medium to medium-low heat, stirring occasionally to prevent scorching, until it reaches 118°C.
Immediately pour the hot caramel into the prepared pan and tap the pan gently on the counter to level the surface. Sprinkle the flaky sea salt evenly over the top while the caramel is still hot.
Let the caramel cool at room temperature for about 2 hours, or until fully set and no longer warm. Do not refrigerate during this stage, or condensation can affect the texture.
Lift the caramel slab out of the pan using the parchment overhang and place it on a cutting board. Lightly grease a sharp knife and cut into 36 equal pieces, wiping and regreasing the blade as needed for clean edges.
Wrap each caramel in a small piece of wax paper or parchment if desired, or serve immediately on a small platter.