I can relate, although I have fewer years of experience. I've switched from one sub software industry to another. My past experience is not valued or at least doesn't count as much. Which I understand. Small and medium companies want a person who knows their stack and who needs only a few weeks to adjust to the company but not someone who needs a full month or so of study to learn their stack. There isn't a lot of demand for generalists in my experience, which again is understandable.
I guess my point is that one has to think carefully about their career path and what they want to do beyond "Write code and build stuff".
I guess my point is that one has to think carefully about their career path and what they want to do beyond "Write code and build stuff".