Any fertilizer with a 1:1:1 ratio of NPK. This could be 10-10-10, 16-16-16. Those numbers represent the quantity of NPK in the product you buy. You'd use more of the former, less of the latter because it's stronger. But, the ratio between those numbers is 1-1-1. That's all you care about.
In flower you may want higher P. But, there are people who grow 1-1-1 start to finish. If you do more P, it doesn't have to be a lot. You can get a product that's, say, 8-16-12 (a 1-2-1.5 ratio) and mix it with your 1-1-1 ratio fertilizer to get an average between them. (I made
a spreadsheet that makes it easier to do this, and to see the strength, whether to use more or less.).
Or, you can buy Alaska Fish emulsion or any blood meal product to boost the N in veg (you shouldn't need to, but I'm just illustrating how you can adjust the ratios individually). And, you can buy langbeinite (sometimes called Sul-Po-Mag) to boost K. I think weed likes higher K.
Be wary of the cannabis-specific fertilizer products. They simplify what I'm describing, but you pay a premium for that and will be ignorant of what you're actually feeding (as you mix the pink bottle with the green bottle). It's best to think in terms of NPK ratios, and "PPM" strength. You'll learn to read your plants, giving them what they need. It takes time, so keep it simple to start (such as, 1-1-1 all the way through).
As far as which product to buy. It shouldn't matter. MiracleGro at the hardware store will be fine. MiracleGro isn't widely used by cannabis growers. A lot of growers use JR Peters Jack's Classic which is similarly inexpensive. It comes in a variety of pre-mixed ratios. I use Grow More Sea Grow which has some organic content. It comes in all-purpose (1-1-1 ratio) and flower & bloom (1-6.5-6.5 ratio, if I recall correctly). I mix the two. It's inexpensive too. About $1 per plant, per grow.
If you use a cannabis-specific boutique "lineup," you can use the spreadsheet to unravel the actual NPK and PPM so you can learn how to read your plants based upon what you're actually feeding.