Add the flour and soy milk to a small bowl and and whisk well. Strain the mixture into a saucepan over medium heat and continuously whisk until the mixture thickens - it should look like pudding when it's ready. Remove from heat and whisk in vanilla extract. Pour back into the bowl (you can also strain it again here to remove lumps; or, blend in a blender/food processor to get rid of them) and top with plastic wrap, pressing the plastic wrap directly onto the mixture (this will help ensure a skin doesn't form on top). Allow to cool completely.
Place the butter and sugar in a large mixing bowl or stand mixer fitted with a paddle attachment. Beat for 7-10 minutes, until very light and fluffy (be patient here, you want the mixture to be very whipped and the sugar to dissolve as much as possible). Scrape the sides as necessary.
Continue to beat the butter mixture as you slowly add the cooled milk mixture to it (if your milk mixture isn't cooled completely, your frosting may curdle). Mix the frosting until it's light and fluffy, scraping the sides as necessary.
Use as desired! You can use this for layered cakes, cupcakes, or cookie sandwiches.