Did you choose to associate with the less toxic influences on your own, after some kind of realization? Or did you fall into a less toxic group somehow and realize how much better people can be?
It's more like the latter for me. I just found myself in that circle of less toxic influences as I grew up and got into my post-secondary institution. I straight up just fell into a less toxic friend group and realized how much better people can be. I found a partner who wasn't afraid to make me question my views, and I found that in my educators and in the media-influences I enjoyed too. There are countless articles about David Duke's god-son and having the same thing happen to him, although he came from a much more extreme place than I.
Growing up in Alberta of all places, the toxic masculinity, the conservative religious values, they just felt like the norm, and I was reluctant to deviate from it all. Having people tell me that I'm wrong, and being given a second chance helps a lot... Though I know first hand that doesn't always work.
Some people are just selfish, stubborn assholes who refuse any change whatsoever.