Preheat your oven to 350°F (175°C). Line a 9x13 inch baking pan with parchment paper, leaving some overhang to lift the bars out later.
In a large mixing bowl, cream together the softened butter, brown sugar, and granulated sugar until light and fluffy, about 2-3 minutes.
Add in the eggs, one at a time, mixing well after each addition. Stir in the vanilla extract until combined.
In a separate bowl, whisk together the all-purpose flour, baking soda, and salt. Gradually add the dry ingredients to the wet mixture and mix until just combined.
Fold in the chocolate chips gently until evenly distributed throughout the batter.
Spread half of the cookie dough into the prepared pan, pressing it down evenly.
Drizzle the caramel sauce over the cookie dough, spreading it out, but leaving a little space around the edges to avoid overflow.
Spoon the remaining cookie dough over the caramel layer, gently pressing it down.
Sprinkle the flaky sea salt evenly over the top.
Bake in the preheated oven for 25-30 minutes, or until the edges are golden brown and the center is set.
Allow the bars to cool in the pan for about 15 minutes, then lift them out using the parchment paper and let them cool completely on a wire rack before slicing into bars.