You have the privilege to keep yourself sharp, most businesses favor productivity over their workers' long term relevancy.
Right now I am lucky that I have the time to recover and learn.
We saw it before AI. See ServiceNow university, teaching tailored abilities to run as technical consultant, for ServiceNow. That way good luck transitioning.