I had a 5 years gap in my career - all medical. Recently, right after that gap, I was intervieweing with multiple companies - most of them didn't even ask me, even though I was worried as hell. In the end I got almost all job offers I wanted. The only notable exception that didn't even grant me a phone screen was Amazon, their recruiter told me that ML has advanced so much in those 5 years that all my prior experienc…
Most people involved in hiring are either not involved with the work being hired for, and thus have no idea about that side of things. Or else they're total amateurs at hiring itself who have, by virtue of having some measure of authority over it, deluded themselves into thinking they are awesome at it.
Arrogance and bias will lose you an awful lot of qualified applicants.
It's not even that hard to work around that problem, if you're willing to shut up and listen. You can easily factor an objection as a concern instead of shutting them down entirely, which lets the applicant either show you that it isn't a major problem after all, or respond in a way that confirms that maybe it is.