In the U.S. if you express suicidal ideations, your professional flying career is probably over (unless you somehow make it an alcohol or gender identity issue). If you keep the thoughts to yourself, you keep flying.
Perhaps driven by demands of insurers who want to weed out the risks.
A TV production company sought insurance for a joy flight in a glider of a young person who had a terminal illness.
The person had expressed interest in flying a glider like the birds and hope to imagine being free of his very painful condition.
Insurers said no, unacceptable risk, because he would have controls to hand.
To the credit of the pilot, the flight took place anyway