I think he likes me but he has a girlfriend?

He pays a lot of attention to me, opens up to me a lot and flirts a lot. I really like him as a friend and don't want to lose that
I think he likes me but he has a girlfriend?
Post Opinion