Eszopiclone (Lunesta): the FAA does not allow daily or nightly use of any sleep aid, regardless of the underlying cause. Occasional or limited use is allowable for pilots, and the FAA publishes a required minimum wait of 30 hours after the last dose before resuming pilot duties. Sleep aids are listed as a class on the FAA's Do Not Fly list. The FAA also states that a condition chronically interfering with sleep is disqualifying whether or not a sleep aid is used.
That is what the FAA publishes, not a determination about you.
Source
- FAA Guide for Aviation Medical Examiners, Pharmaceuticals, Sleep Aids (table last updated 05/07/2025)
Your AME decides.
Pilot Medical Guardian keeps this same FAA medication reference in the app, next to your own medication list. Your health data stays on your device and your own iCloud. Free to download on the App Store