Years w/o job, but past experience - how to get back in

I’ve had a lot of recruiters reach out based on my skills and LinkedIn, but once gaps are revealed, no replies or responses to resume.

I even had one recruiter tell me that they didn’t care about courses (I’ve done some in my years off), only job experience.