This sounds very age appropriate. He’s pushing back, finding his independence. I don’t have all the knowledge on this but one of our daycare teachers was talking about this and how it’s very common around 2-3 for all sorts of push back behaviors . They are really starting to understand they are an individual. He’s practicing his push back on the safest person in his life. It’s normal.
I feel like he just loves to play with other kids ! Maybe try to arrange some playdates ? Try to get down and play with him or try some activities at home, there are times when my babygirl gets this way, I find she’s missing interaction with other kids or is too used to same old routine so I try to switch it up. It doesn’t mean your a bad parent, this will pass💓