Leveraging Foundation Language Models (FLMs) for Automated Cohort Extraction from Large EHR Databases