Was he actually flirting?

This guy cheated with me a couple of years ago. We had sex once while he's been in a relationship. (it's bad I know) I usually see him where he works because he works at a store that I go to. Today when I saw him I told him I got a job working at a museum. And I told him I wasn't sure about working there because it's a really classy and elegant place. And then he said well you're classy and elegant.

Also a couple of months ago when he saw me talking to another guy (his coworker) he came over to where we were and interrupted our conversation. He overheard this guy name Rick (his coworker) telling me that he had done something fun. And then he came over and stood between us saying (how was it?) I don't know why he would do this.
Was he actually flirting?
Post Opinion