A girl who is depressed, anxious, etc is definitely not a red flag (barring more sinister mental disorders like BPD). However, any girl who on medication is a red flag. Why? Because it almost guarantees that she is incapable of solving her own problems through critical thinking and self-reflection and acccountability, instead opting to maintain her victimhood status while indefinitely avoiding accountability. Taking medication is not a solution to your problems. If someone has issues so severe that medication is genuinely the only option (unlikely), then they is in fact too damaged invite into your life anyway.
And I would say the same applies for men, if they have functional depression, women should give them a chance, but if their solution to "depression" is action faking horseshvt like therapy and medication, women should not date them.