The S&P 500 is currently dominated by a handful of very expensive companies: https://www.slickcharts.com/sp500
If you look at the P/E of mid and small cap companies, their valuations look much more sane: https://x.com/sonalibasak/status/1970881745227833694