Recessions are impossible to time. Stay invested and let compounding do its thing instead of sitting in cash.
Inflation is quietly eating away at uninvested cash anyway, making the sidelines riskier than the market. Just keep dollar-cost averaging so you automatically buy the dips.