Preheat the oven to 350°F and line a 12-cup muffin pan with cupcake liners.
Whisk the flour, baking powder and salt together in a bowl.
Beat the butter and sugar together until light and fluffy, about 3 minutes, then add the eggs one at a time.
Stir in the crushed pineapple, coconut milk, coconut extract and 1 tablespoon of the rum.
Fold the flour mixture into the wet ingredients just until no streaks remain; do not overmix or the crumb turns tough.
Divide the batter evenly among the liners, filling each about two-thirds full.
Bake for 18 to 20 minutes, until a toothpick comes out clean and the tops spring back when touched lightly.
Cool the cupcakes in the pan for 5 minutes, then brush the warm tops with the remaining 1 tablespoon of rum and transfer to a rack to cool completely.
Beat the cream cheese and remaining butter together until smooth, then add the powdered sugar gradually until the frosting holds a stiff peak.
Pipe or swirl the frosting generously onto each cooled cupcake.
Press toasted coconut flakes into the frosting and top each cupcake with a maraschino cherry.
Good to Know
Leave the rum out of both the batter and the brushing step for a version everyone at the table can eat; the coconut and pineapple carry plenty of flavor on their own.