flirt with
US /flɜːrt wɪð/
UK /flɜːrt wɪð/

1.
to consider or experiment with an idea, subject, or activity in a casual or superficial way
:
•
She's been flirting with the idea of starting her own business.
•
He's been flirting with danger by driving so fast.
2.
to behave as if sexually attracted to someone, without serious intentions
:
•
He was flirting with the waitress all night.
•
She likes to flirt with handsome strangers.