Have you ever been rejected by your industry because of ageism? What was the reason?

I worked as a programmer for 25 years in the same company. The title “programmer” must be enough to guess why I’m not working there now. At this point, everyone knows that ageism is rampant in technology. The problem is, it starts much earlier than in other industries.
As soon as you hit 35, it becomes harder to prove yourself to employers and undertake serious projects. And there’s only one reason for that. In the minds of people, older age, instead of highlighting more experience and a more robust background, represents a slower process, poor health, and declining intelligence.