As layoffs mount at tech firms, biotechs and pharmaceutical companies are scooping up employees with AI and data science experience.