Don't try to be too smart. Especially if this is not your full time job. The market is not rational. Dollar cost averaging and proper risk allocation is the way.
[1]https://www.hartfordfunds.com/practice-management/client-con... & https://www.fidelity.com/learning-center/wealth-management-i... (if you prefer an additional source)
But counterpoint, the S&P 100 gained over 24% this year. FTSE gained nearly 18%. Still good gains vs inflation!