Salaam.
It says that thinking of a sin in your mind is ok al long as you don’t speak of it or act on it. What about if a person is talking about their suicidal thoughts to a friend for some emotional help? Also, what if a person speaks about their own experiences with suicidal thoughts to the public to help people understand.

Jazzakallahu Khair