Charlie Puthis working through a breakup with the help ofDan + Shay.

On Friday, the “Attention” singer-songwriter teamed up with the country duo for a new single titled"That’s Not How This Works"about an ex-romantic partner trying to get back into a relationship after ending it on bad terms.

Charlie Puth, Dan + Shay.Gilbert Flores/Variety via Getty, Amy Sussman/Getty

Charlie Puth, Dan + Shay

Heexplained the song’s meaningand detailed its creative process in an Instagram post shared on Friday. “I wrote That’s Not How This Works on zoom with@danandshayin April of 2020,” began the caption.

“I went through many changes musically in my life, but always kept this song in my back pocket because I knew how special it was. It was after all the song that propelled me into the next phase of my life,” wrote Puth. “It was the song that healed me.”

He continued, “With all of these feelings that I hadn’t come face to face with before, I finally mustered up the courage to put a melody against them. When you listen to this song, I hope you feel what I felt when I wrote it — a sense of relief.”

Charlie Puth and Dan + Shay “That’s Not How This Works” Single Artwork.Courtesy of Atlantic Records

Charlie Puth Teams Up with Dan + Shay for New Breakup Single — and Sabrina Carpenter Stars in the Video

The song was released alongside a music video starringSabrina Carpenteras the ex-girlfriend in question, depicting the pair in happy times before they find themselves in screaming matches that result in a tearful separation.

On Thursday, Puth teased the music video with ashort filmthat expands on the narrative laid out in the official clip. After opening with the musician creating the song in a recording studio, the film flashes back to Carpenter, 23, gifting him a new piano for his birthday.

Never miss a story — sign up forPEOPLE’s free daily newsletterto stay up-to-date on the best of what PEOPLE has to offer, from juicy celebrity news to compelling human interest stories.

“Thank you@sabrinacarpenterfor your brilliant portrayal of this character. You are so unbelievably multitalented,” added the “See You Again” performer on Instagram.

In a post of her own on the social media platform, Carpenter announced thatshe’s featured on a remix of “That’s Not How It Works"that’ll be released on April 14.

source: people.com