Ugh, that sucks, I’m sorry you had to deal with that. “Pandit” can have a respectful meaning, but it sounds like this person was using it in a sarcastic or demeaning way, which is really uncalled for. People try to disguise their rudeness sometimes under jokes or “harmless” comments, but it still hurts. Do you think talking to them directly would help clear things up? It might feel awkward, but sometimes calling people out on their BS makes them think twice before doing it again.