Merry Christmas. I'm Software Engineer, near 50 and I faced the same problem with you. I propose to you two paths.
The first and is what I did. I moved in a field that I was not very famirial with and it concerns industrial programming and especially in CODESYS (ST programming). This is a relatively new technology but the way you design and programming is similar to those of previous decades.
The second is to start your own company related or not to your field, taking advantage of your knowledge, experience and skills.
I wish you the best.