It’s not unusual for studies like these to exclude people taking medication, or with any kind of medical condition, such as gender dysphoria, autism ,etc. It’s to control as many variables as possible.
(I’ve personally been excluded from FMRI studies for being autistic and left handed.)