Stock prices are absolutely inflated, and as a small-scale investor I'm scared.
However, I'm not pulling out because realistically, there's no other asset that's safer in the long run. Interest rates are close to zero so returns in bonds are low, inflation will eat away money held in cash deposits and don't even get me started on cryptocurrency, rare sneakers or other "alternative investments". I started investing in stocks in 2017, even then people were warning that we were in a bubble that was bound to burst at some point. Not investing would have missed me several years of above-average returns.
But today, there seems to be a bubble on everything after all the money printing. So I'll keep investing in good, underhyped and stable companies and try to weather whatever storm, good or bad, will come in the next years.