The thrill of owning a nice car fades after about six months. Look, everybody makes dumb financial moves all the time.
The important thing is to recognize your mistake, stop, and fix it!
If you make the median per capita income of ~$42,000 a year, limit your vehicle purchase price to $4,200 if you must buy one.
Absolutely do not go and spend the median car price of $36,000!
Your $20,000 invested in 2009 in the S&P 500 index would now be worth over $50,000 today given the stock markets are now at record highs.