Earlier quoted context omitted.
I'm 54. Have been in sw dev for 40 years. I have kept my skills (aws api / node.js / css / html5 / etc) up to the point were I am over qualified for many of the positions (laid off 3 years back from IBM) I apply for. Before I updated my LinkedIn profile pic I received many interview invites. Now I get none. Recently I started looking at the people that these sw dev companies _actually_ hire. They ask for 3/5/10 years…
I'm a middle age female software developer and also found similar experience when I was in the job market recently. The software development positions generally are below 2 years, under 5 years and the senior position at 6-8 years. What do you do if you have 20 years of software development experience?
Move to a market where your skills are in high demand and focus on middle/business and back end development. Or better yet, embedded systems development.
I've been at this for 25 years and IMO, the further down the call stack you go the more your cumulative years of experience are an asset.
This doesn't mean you can stop learning new tech, it just means the trends in those lower layers seem to be more sustained and of a longer duration.