Heat the oven to 350 degrees F (175 degrees C) and line a 12-cup muffin pan with cupcake liners. In a medium bowl, whisk together 1 1/2 cups of all-purpose flour, 1 1/2 teaspoons of baking powder, and 1/4 teaspoon of salt.
In a large bowl, beat 1/2 cup of softened unsalted butter with 3/4 cup of granulated sugar on medium speed for 2 to 3 minutes, until pale and fluffy. Beat in 2 large eggs, one at a time, then beat in 2 teaspoons of vanilla extract and 1/4 cup of sour cream.
Add the flour mixture in three parts, alternating with 1/2 cup of whole milk, and mix on low just until combined. Do not overmix.
Divide the batter evenly among the 12 cupcake liners, filling each about 2/3 full (about 3 tablespoons per cupcake). Bake for 17 to 19 minutes, until the tops spring back when lightly pressed and a toothpick inserted in the centre comes out clean. Cool in the pan for 10 minutes, then transfer to a wire rack and cool completely, about 30 minutes.
While the cupcakes cool, make the ganache: put 1/2 cup of semi-sweet chocolate chips in a small heatproof bowl. Heat 1/3 cup of heavy cream until it just starts to bubble around the edges. Pour the hot cream over the chocolate, leave untouched for 3 minutes, then whisk gently from the centre outward until smooth and glossy. Let it cool at room temperature for 15 to 20 minutes, until thick and spoonable.
Once the cupcakes are completely cool, use a small sharp knife to cut a cone-shaped hole about 1 inch wide and 1 inch deep out of the centre of each cupcake, leaving at least 1/2 inch of cake at the bottom. Spoon about 1 tablespoon of ganache into each hole. Trim the flat top off each removed cone and press it back on as a lid.
Make the buttercream: in a large bowl, beat 1 cup of softened unsalted butter on medium-high speed for 2 to 3 minutes, until pale and fluffy. Add 3 1/2 cups of powdered sugar in two parts, mixing on low until combined, then add 1/4 cup of heavy cream, 1 teaspoon of vanilla extract, and 1/4 teaspoon of salt. Beat on high for 2 minutes, until light and silky. Add pink gel food coloring a toothpick dab at a time, beating 30 seconds between additions, until you reach the pink you want.
Spoon the buttercream into a piping bag fitted with a large star tip and pipe a tall swirl onto each cupcake, starting at the outer edge and spiralling up to a point. Add heart sprinkles right away. Serve at room temperature.