American study. Individuals who underwent gender-affirming surgery had a 12.12-fold higher suicide attempt risk than those who did not.
However they don't appear to have compared people who underwent gender surgery with those who had gender distress but didn't undergo surgery. Still shows that the psychological problems don't vanish with surgery.
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC11063965/