Yes, I understand that. I have experienced suicidal times since I was about 14 years old and it is, in a way, part of my identity.
About a year and a half ago I changed my strategy. I capitulated to the topic. I said that I am powerless against the suicidal thoughts, no matter what I try to fight them, they always come back. I gave up fighting them, I said I didn't know what to do anymore. I've tried killing myself in the past, I've tried all sorts of therapies and things to make it better. But nothing worked out right. I give up. I give up my need for control. And I'll hand it over to a higher authority - whatever (in my case not to a religious god).
After a while, when I saw a moving train, I suddenly had an idea. I gave my suicidal thoughts a face, they became an imaginary friend. I said to my friend: You've been my friend for so long, it's okay that you're here, you can sit here next to me whenever you want, I won't send you away. But I already know all of your ideas about depression in all their variations, this year I'm going to listen to other people's ideas on how to deal with depression. But you remain my friend, I just won't implement your ideas for now because I already know them. From that day on, my friend came to see me less often. But when he comes, I say, oh hello, there you are, why did you come now? My friend has been with me for so many decades, he won't leave anymore, but I don't follow everything he suggests anymore.