Ex kept asking who I’d “been fucking” after 10 months apart, I have not slept with anyone else, is he doing this to stroke his ego?

Anonally90
I have not slept with my ex in 10.5 months. Now we have seen each other 3 times since and on 2 of the occasions I declined sex with him. The third time we did have sex. Now here is where it gets a little weird.

whilst actually having sex, like 3 strokes in he started asking “who have you been fucking?”, repeatedly. My initial response after being asked 2-3 times was “what does it matter?” His response was to repeat the question. Eventually I said “no one” and he asked “ so your saying you saved yourself for me?”. This irritated me , so I said “NO!” And he reverted to the initial question. When I said “ why does it matter?” And “what do you want me to say?”he said “the truth!” All the while the sex was continuing, hun on top.
now when we began having sex it was visible a little painful/uncomfortable for me, and I am wondering if he knew I had not had sex, and just wanted me to confirm it? Just so he can feel like “the man”, can he feel I had not been with anyone.

I also suspect this because in the past he has always been against it when male friends have asked exes (that they were reconciling with) who they had slept with. He has always maintained that it is unproductive and will only upset the guy and make him angry with the woman for in all reality doing nothing wrong. He was clear that he would never ask that question. Single is single and knowing they had sex with someone else would only ruin a good thing. So why would he now do that?

He also did not look happy when asking, he looked annoyed and a little angry.

is this an ego boost as I suspect?
Ex kept asking who I’d “been fucking” after 10 months apart, I have not slept with anyone else, is he doing this to stroke his ego?
11 Opinion