A guy I work with flirting with me when I started and we flirted with each other and there was some sexual tension but then stops he flirts with me?

Every now and then he will say something sexual then ghosted me. I ask if we can Hangout outside of work as friends and he replied back sure. Then the next day he flirt with me again and then stop. how should I take that

A guy I work with flirting with me when I started and we flirted with each other and there was some sexual tension but then stops he flirts with me?
Post Opinion