Why is this dude doing this?

I’ve been talking to this guy for over 2 months now. We always hang out when we’re not working. We go places to just hang out and he’s introduced me to all his friends. We work together (I know, I don’t need to hear how coworkers should date). There’s this other coworker who snaps me all the time. It’s honestly just shits and giggles. But this dude will always call him my “bf” knows I get upset when he does. There’s throw girl at work who I always call his “gf”, but he’s told me before she’s not that pretty, etc. Yesterday I snapped him something sexy and and he said something back. Then the next snap turned into “I can’t hang out with you anymore bc my gf won’t like it”. He kept saying this over and and over again...literally all day. I then told him I’m gonna message her and ask her and I kinda went along with it for an hour. I finally told him I was just kidding and I wouldn’t do that and all he said was “k”. I later asked him why he sent that and if he really doesn’t want to hang out just straight up tell me because it sucks not knowing. He didn’t say anything.

I messaged him twice today and he ignored both. He’s also working with that same girl today so I’m on edge because I know she’s very bold and flirty. He’s done this before where he’ll mess around. I just don’t know what to do anymore. Idk if what I said to him was okay???