It has been going this way for some time in the US. My own story and experience was very similar to yours. Lost my position as a Sr. Engineer, and while going through that gauntlet of algorithms trying to find a new role, I found a pivot instead. Left the software world of abstractions and optimizations, and brought my skills in physical hardware and machine knowledge to the forefront. Now I work in hard technology. I may be sort of unique in that I had these parallel skillsets and experiences. But it's never too late to learn new skills. What other skills outside of software do you have?