well, the first thing is to stop beating yourself over it, even if you're still not sure what your friend's intentions are.
imo, it's just friendly teasing..
this is normal while socializing and no one takes it seriously most of the time (judging from this alone ofc since i don't know the whole dynamic between you two).
take this as social training. don't give a shit about intentions, go with the flow and laugh around, try to tease back if you can- slow and easy
it won't be instant, it can get difficult to not beat yourself over NOT BEATING yourself about things, if that makes sense.. i struggled with this too.
go and try to distract yourself with something even if you don't feel like it, anon. good luck.