In a small saucepan over medium heat, whisk flour and milk together, stirring constantly, until it thickens. It should have a thick pudding consistency. Remove from heat and immediately pour mixture into a bowl to cool completely.*
After the pudding mixture has come to room temperature, use a stand mixer fitted with the paddle attachment or a beater to cream the butter, sugar, vanilla, and salt together on medium high until light and fluffy, about 3 minutes.
Replace the paddle attachment with a whisk attachment, then add the completely cooled eggnog mixture, and beat it for about 7-10 minutes on high until it looks like whipped cream. The mixture will look curdled at first, but as you continue whipping it, it should come together. If you can still see streaks of butter, keep beating it until you can’t.**
Frost or pipe buttercream onto cupcakes, as desired. Garnish with sprinkles.