He doesn’t deserve you the fact your conflicted despite him doing all this awful shit shows how good of a person you are. You should drop him because even if you wanna still try to reconcile with him now that you know who he really is it’s gonna be hard reply
I understand why you dont want to drop him (friends for a long time, only friend ,knows secrets ) so maybe in a calm manner try to educate him in a text on why he shouldn't say those words. In this time when your on thin ice try to reach out to people try to make more friends (I understand If that's uncomfortable for you) if he keeps on saying the ...... reply