Preheat the oven to 350 degrees and line a muffin tin with four paper liners.
In a small bowl, whisk together the flour, cocoa powder, sugar, baking soda, and salt.
In another bowl, mix the buttermilk, egg, oil, red food coloring, vanilla, and vinegar until smooth.
Pour the wet mixture into the dry ingredients and stir until just combined.
Divide the batter evenly among the four liners and bake for 15 to 18 minutes, until a toothpick comes out clean.
Let the cupcakes cool completely on a wire rack.
While the cupcakes cool, beat the cream cheese and butter together until smooth, then add the powdered sugar and mix until creamy.
Use a small knife to cut a shallow hole in the center of each cooled cupcake and fill it with 1/2 tablespoon of raspberry jam.
Pipe or spread the cream cheese frosting over the top of each cupcake to cover the jam.