Shawn Mendes and Camilla Cabello may no longer be together, but the love and friendship they shared are for life.

The 23-year-old musician opened up about his relationship with his ex on the radio program aired Tuesday, "On Air With Ryan Seacrest," where he shared that he and the "Don't Go Yet" singer, 25, are in a good place months after their breakup in November. The couple had dated for about two years before calling it quits, according to People.

"[We're] so friendly. I mean, I loved Camila first for so many years and that's never gonna change," he said.

He then shared how his song, "When You're Gone"—which features lyrics about trying to get over a bad breakup—was written a month after they called it quits, but he found the writing process healing.

"I think it's really just the processing and the complexities of that, the complexities of knowing something is better and still wanting to hold on and all the reasons why. I'm really glad to be able to just be real and authentic with my music because it's cathartic for me too, to be able to write about these things," he explained.

The "Stitches" singer then told Seacrest that he related to the feeling that happy relationships can sometimes be scary, given how there's always a lingering fear that it will come to an end, which then makes the aftermath difficult to handle.

"I think most people have that fear, but in a lot of ways, I think a breakup can be a blessing too because it can really show you that you are [strong enough], which is necessary," he said.

Mendes also spoke about his new music and how it helped him move forward in an interview with ET Online.

"I think, in a lot of ways, it was just me kind of processing what it feels like to be on my own again and processing what it feels like to learn how to cope and be there for myself. The original song was really a sad ballad and it ended up turning into an upbeat tempo kind of song, so it's interesting... I think if you can surround a song in a sonic soundscape that makes people excited, it allows people to listen more," Mendes explained.

Shawn Mendes and Camila Cabello
LOS ANGELES, CALIFORNIA - NOVEMBER 24: (L-R) Shawn Mendes and Camila Cabello, winners of the Collaboration of the Year award for 'Señorita,' pose in the press room during the 2019 American Music Awards at Microsoft Theater on November 24, 2019 in Los Angeles, California. (Photo by Matt Winkelmeyer/Getty Images for dcp) Photo by Matt Winkelmeyer/Getty Images for dcp

Meanwhile, the singer hopes his fans find comfort in the lyrics to "When You're Gone," which is out now.

"Sharing music and sharing vulnerable lyrics has always been important to me because potentially there's someone who's going through the exact same thing," he noted. "I think that it's kind of creating a world where somebody can feel related to and less alone.