I'm in my 40s and I (and the entire team I worked on) was laid off in 2022. After taking a week or so to relax, I was able to find a new position within about 4 weeks, which I'm still at now, and has turned out to be one of the better roles I've had in my career.
I realize this is just another anecdote, but don't be discouraged by the other posters here -- companies value people with lots of experience.