The FAA does not publish a list of medications which are acceptable for use while exercising the privileges of your airman pilot certificate. However, you may call the FAA at (405) 954-4821 (and then choose option #1) to inquire (anonymously if you prefer) about any medication. In addition, much useful information is available through the Aviation Medicine Advisory Service at the following link:
https://www.aviationmedicine.com/medication-database/
Please consult these resources if you have questions about medications.