The S&P tripled in value since 2010, so you would've had to invest $333.000 at that time and cash out now to become a millionaire. But few people have that. That's a 1%, I already made my fortune / I have rich parents privilege.
Sure, ANY amount you put in there would've gotten tripled, but turning $1000 into $3000 isn't going to make that big a difference.
And if you have hundreds of thousands lying around, I'd argue that buying a house would be more beneficial for your well-being in the short term.
Disclaimer: I've invested some money in the past, both low-risk long-term stuff, index funds, and 'play money' into meme funds like Apple and Tesla. I think at most I've doubled what I put in? Didn't lose money (even with the rona), that's for sure.
I try to not go "I should've done x" too much though, like "I shouldn't have sold my handful of $250 Tesla stocks when I did".