I've missed out on a great deal of money hoarding cash instead of stocks, but I have peace of mind. The cost of inflation is worth that to me. I have felt that a crash -- a real crash, i.e. a change in public opinion about the equity markets -- has been just around the corner since 2016. I'm much less worried about the prospect of a dollar crash, even with today's inflation.
This is not investment advice and is only my personal opinion.
The idea is not to get rich quick, nor is it to avoid any risk (because both are statistically impossible.)
The idea is to limit how much a crash of any type hurts, by having some savings also in other types of assets.
So for example, if your savings are $100 and you buy stocks for $30 of that, and the stock market crashes so you're down to $10 in stocks, now you only have $80 in savings. But you can use your cash savings to bootstrap your stock position back to 30 % again. If the market recovers, you get an outsize benefit from that.
(Similarly, if there should be some sort of dollar crash, you can probably use your stock market savings to bootstrap your dollar position again, putting you in a good position for recovery.)
Edit: this is not investment advice; I am not qualified to give investment advice.
and assumes you've already bought the house or can do so in the near future while mortgage rates remain low, while the struggle is that the cost to get into the market is rising at crazy multiples (30% yoy?)
and assuming enough economic stability that you can be sure to make the payment even if your job moves.