<human>: Condense the text into a few key points

Hey reddit! 
So I am a 21 female and my friend is a 22 male. We have been friends for about 1 year now. He moved abroad soon after we first met and I made a trip to see him this summer. I should say we are not strictly friends as we have crossed into the intimacy realm several times but I can say that as of right now there is zero interest in that area between us.

So basically since I have returned home from the visit with him (3 months now) he has treated me like absolute shit. Getting really personal with insults that he claims are just teasing, belittling me, not taking anything I say seriously etc. for example I am going through a really rough time with my family right now and he said to just get over it when I tired to talk to him about it. Yet he expects me to listen to him complain when he says he can't figure out what to do with his life etc. 

What am I supposed to do about this? I tried talking to him about it and he said something along the lines of; get over it that's how I treat people because we're close enough that you should know these things aren't a big deal. But the thing is that these are beyond like the typical "you smell" type comments. These are deep personal things that he is picking on because I told him in confidence about them. It's really getting to me and he never used to be like this. What am I supposed to do now?
<bot>: Friend treating me like garbage using personal things I told him in confidence. Says he does it because its how he shows affection but I feel it's way beyond fun teasing. What should I do?