Who is "we" here?
1) Right now coders are in high demand. This means that they cost a lot. Recruiters might want more coders to be able to recruit people easier, companies might want more coders to reduce their price, and have more people working. On the other hand, coders themselves might not want more coders because it may reduce their earnings, and make it harder for them to get jobs.
2) Some people think that more software is good, and therefore we need more people producing it. On the other hand, some people think that "we should be more like engineers" and should gatekeep more, to increase the quality of the software. I'm not supporting either of those idea, just citing examples that I've seen, especially here on HN
3) A country might want more coders in general to increase its economy, especially if it's one where other countries can outsource work to. But on the other hand, it might also not want other countries that have a lower cost of living/salaries to have more coders, so they can keep work for themselves.
All of that to say that I'm not sure the sentiment of "we need more coders" is agreed upon by everyone, which is why I'm asking who you were referring to.
I slightly regret adding that to my post now, as my main concern was with the over generalisation of the reasons why older people might switch to coding/development. Ironically, I managed to do that myself by assuming the 'we' was agreed as was the need for more developers!
It's already here, and has been for a long time. We call these machines "compilers".
Recommendation: don't do that. Instead aim to get a job with people who value inherent capabilities and flexibility, and who aren't abusers. To do that you may need to do some work first. For example, develop a web application of your own, open source, using some modern tech stack (doesn't matter which specific one). Then, when you interview you can talk about your experiences, thoughts, etc with that tech. This shows the interviewer that you have the capability to pick up new tech, to understand its strengths and weaknesses, to produce output. A good interviewer will see that and know that you will therefore be able to pick up whatever tech they want you to use. It's not about specific knowledge and buzzwords : it's about the ability to learn and apply. You can now go into interviews with the approach : I don't know anything about some of the tech you're using, but that's ok because I have proven I can learn, and I know a huge amount about _something_, and perhaps the interviewer will be interested to learn from me about that.
One of the advantages of age is that you have had more time to meet more people, with with more people, build a network. Use those contacts to look for jobs rather than recruiters.