My male teacher said I'm "one of the prettiest girls in school" while having a conversation with me. Is he attracted to me?

We were having a conversation with just the two of us after class, and at one point I was talking about this guy I'm dating and how I felt confined in the relationship. That's when he said that "well since he's dating one of the prettiest girls in school..." and he continued talking about the situation, but that compliment stuck with me. Is it possible he's attracted to me or was it simply a friendly compliment? For context, I'm 18 years old and will be graduating in a week, so I'm not a minor.
My male teacher said I'm "one of the prettiest girls in school" while having a conversation with me. Is he attracted to me?
Post Opinion