Preheat your oven to 350°F (175°C). Line two baking sheets with parchment paper.
In a medium bowl, whisk together the flour, cocoa powder, baking soda, and salt. Set aside.
In a large mixing bowl, use an electric mixer to cream the softened butter and sugar together until light and fluffy, about 3-4 minutes.
Beat in the egg until well incorporated. Then, mix in the red food coloring and vanilla extract until everything is combined.
Add the dry ingredients to the butter mixture in three parts, alternating with the buttermilk. Start and end with the dry ingredients. Mix until just combined; do not overmix.
Using a cookie scoop, drop tablespoon-sized amounts of batter onto the prepared baking sheets, leaving space between each drop for spreading.
Bake in the preheated oven for 10-12 minutes or until a toothpick inserted into the center comes out clean. Let them cool on the baking sheets for a few minutes before transferring them to a wire rack to cool completely.
While the whoopie pies are cooling, prepare your filling. You can use a classic cream cheese frosting or any frosting of your choice.
Once the whoopie pie shells are completely cool, pair them up by size. Spread a generous amount of filling on one shell and sandwich it with the other shell. Repeat until all are assembled.