Preheat oven to 350 degrees Fahrenheit and line a 12-cup muffin tin with paper liners.
Whisk flour, cocoa powder, baking soda, and salt in a medium bowl.
Whisk sugar, melted butter, eggs, buttermilk, and red coloring in a separate large bowl.
Fold dry ingredients into wet ingredients until smooth batter forms without overmixing.
Divide batter evenly among prepared muffin cups, filling each cup two-thirds full.
Bake for eighteen to twenty minutes until a toothpick inserted into center comes out clean.
Cool cupcakes in pan for ten minutes, then transfer onto wire racks to cool completely.
Beat cream cheese, softened butter, powdered sugar, and vanilla in a stand mixer until fluffy.
Pipe generous frosting swirls onto cooled cupcakes and top with festive heart sprinkles.