December 12, 2022 | 8:06pm

In a shock twist, it turns out that writing a song for someone might actually be a good way to hook up with them.

Page Six hears that Dua Lipa is dating rapper Jack Harlow — whose latest album features a to paean to the British-Albanian star entitled, appropriately enough, “Dua Lipa.”

Harlow has said that before the album came out in May, he called Lipa on FaceTime to get her blessing. And, and that while he got a somewhat awkward response, she gave him the nod.

But it seems that after meeting the charming rap star in person at the Variety Hitmakers Brunch in Los Angeles in November, she has become quite smitten with the charming rapper, and we’re told they’ve been in “constant communication” ever since.

Harlow named a song on his latest album after the British-Albanian singer.
Instagram/Dua Lipa

Meanwhile, according to a source, “he was very interested in her, and was going to strongly pursue [the romance].”

Insiders say he even flew to New York City to meet up with her after her Z100 Jingle Ball appearance on Friday.

And Page Six spies say the two were spotted arriving separately at a restaurant in the Meatpacking District for lunch the next day.

The pair met in person for the first time at the Variety Hitmakers Brunch in Los Angeles late last month.
Variety via Getty Images

We’re told they appeared to be trying their best not to be seen, but slipped into a private entrance and were later spotted leaving the eatery separately.

According to the source close to Harlow, “he is going to do his best, as he has always been a fan of her.”

Or as he puts it in the track, “Dua Lipa, I’m tryna do more with her than do a feature.”

Dua Lipa is one of the hottest acts of 2022.

Getty Images for The Recording A

Dua Lipa is one of the hottest acts of 2022.

Getty Images for dcp

Dua Lipa is one of the hottest acts of 2022.

Instagram/Dua Lipa

Up Next

“Like, Instagram drama [versus] ‘Let me destroy your marriage’?” the…

Lipa was recently linked to Trevor Noah after the pair were photographed hugging after having dinner at Miss Lily’s in New York in late September.

But a source tells us that the dinner was friendly and took place after he taped for her podcast “At Your Service.”

“They haven’t spoken since,” says the source.

She had a serious relationship with Gigi Hadid’s brother Anwar, but the two parted ways in December 2021.