It is unfortunately an extremely common myth (including on this forum) that you are required to actively invalidate the suicidal person's feelings and deny them the option of suicide when it has already become something they might choose to do, regardless of whether or not you approve of it. By denying them the only option they feel they have left, you have successfully alienated the person from the start by being unwilling or unable to acknowledge their point of view. Very few people are willing to say, "Yes, suicide is an option among many." But they are much more willing to say, "No, suicide is not an option, and you have to pick something else."
The reality is, it's best to acknowledge to the suicidal person that suicide is in fact an obvious option to solve their problems, and it may be something they ultimately choose to do. But it's also a very extreme measure to deal with a supposedly insurmountable problem, and is for the most part often a result of irrationality because of depression. Personally, I wish this forum would adopt this style of validating, because it seems like we often stop short and are under the assumption that telling a suicidal person that suicide is an option will enable them, but this is not the case, as it often helps them to feel better that someone is willing to see things from their point of view without judgment.
Having said that, many people encounter hostility when their suicidal thoughts are revealed. They are not listened to because they are inherently considered wrong, and even thinking of suicide often allows others to patronize and attack you. I'm sorry you've been forced to experience this. Many people are ignorant of suicide and how to deal with it, and essentially do what they think is the right thing, even if there's no objective reason to believe it's the right thing.
So, to answer your question, yes, I've gone through the same. My two parents in particular become very hostile toward me if I ever mention my present or past suicidality. I have simply been told that I should forget the idea, that it is not an option, and I should ignore my suicidal feelings so I can move on in life. It was particularly problematic when I was a teenager using suicide hotlines, which was very upsetting to my father, who told me I didn't need any help like that, that I was better than that (because feeling suicidal downgrades you as a person, apparently), and he was very angry at me for using a hotline.
Unfortunately, I don't think you can do much to change others' perspectives on your suicidal thinking. You can, however, make the best of the situation by finding some form of counseling or therapy so you can discuss these thoughts with someone, with the goal of lessening the severity of and hopefully completely eliminating the suicidal thoughts. Medication may be of some use if therapy alone is not enough (you said you were on some form of medication, but didn't mention what kind of medication it was). If nothing else, it seems like people care for your life, even if they don't know how to show it. From what you said, it sounds like they would be receptive to your attending some form of counseling or therapy. That's my recommendation, as a first step.