Why my ex talking about me

Ive been sent a few messages about how he would say ‘ yeah I did that with my ex (me) ‘ to a few sexual, but not really sexual things, like they said how they loved to be chilling out in underwear with their fav person he responded to that with I used to do that with my ex. Why would he keep bringing me up in those types of situations