Kourtney Kardashian has exchanged some flirty Instagram messages with Edgar Ramírez.

Kourtney Kardashian

Kourtney Kardashian

The 41-year-old TV star - who has Mason, 10, Penelope, eight, and Reign, five, with Scott Disick - gushed about Edgar's hit HBO series 'The Undoing' over the weekend, and he subsequently returned the compliment in a series of flirty posts on social media.

In reference to the show, Kourtney initially posted a sultry image of herself on Instagram and wrote: "Who killed Elena Alves?"

Edgar, who plays Detective Joe Mendoza in the show, then shared Kourtney's post on his Instagram Stories and replied with a flirty message alongside a winking emoji.

He wrote: "I'm all ears..."

In response, the brunette beauty - who has more than 100 million Instagram followers - wrote on the photo-sharing platform: "NO ONE TALK TO ME UNTIL I WATCH (sic)"

Edgar, 43, responded to Kourtney's messages with three emojis - the monkey hiding its face, the monkey covering its ears and the flame.

Meanwhile, a source recently rubbished the suggestion that Kourtney could be set to rekindle her romance with Scott.

The celebrity duo were seen having fun together during Kim Kardashian West's 40th birthday celebrations, but a source close to the situation insisted they are nothing more than good friends.

The insider shared: "Scott and Kourtney have come a long way.

"They definitely have had their ups and downs over the last decade, but are now closer than ever. They call each other ‘best friends.' They have truly figured out a way to co-parent that is best for them and have a good routine going."

Kourtney and Scott are also determined to maintain a healthy relationship for the sake of their kids.

The source said: "Since Scott has been in a good place recently, Kourtney has been enjoying spending time with him.

"When he's in a good place, they have the most fun and she wants to be around him. She thinks he's the funniest person and will always have a place in her heart for him."