https://www.faa.gov/pilot-mental-fitness
The FAA’s regulations require airline pilots to undergo a medical exam with an Aviation Medical Examiner (AME) every six months to five years, depending on the type of flying they do and their age.
https://www.ecfr.gov/current/title-14/chapter-I/subchapter-D...
Mental standards for a first-class airman medical certificate are: