If you're worried about age or the work gap (not saying you are)... let me just say that age is not worth worrying about and is a waste of good energy! You're valuable. Period.
I'm over 40 and consider myself solidly "mid-career" and with so much more ahead. I likely will have a complete career shift at some point and will need to go back to school or pivot by learning a new field by building on the transferable skills I have now. I consider that normal career evolution these days.
One idea... you could play a mental trick on yourself and tell yourself you've left your last job in a different field and want to start a new career track... how would you go about it? Online classes? Reading industry blogs? Entry level "foothold" job in a direction that energizes you? (e.g. If I wanted to open a restaurant, there is no better pivot job than being on the customer service side of food service for a bit... what you learn there will be invaluable as you climb the ladder. And you'd not just be "waiting tables"... you'd be "gathering research" which is entirely different.) Wishing you great luck ahead!