Groban confirmed he had previously dated Perry and detailed their time together to host Andy Cohen after he was asked about the song by a fan.
"We were both very private, and so we realized we were better as friends. And we've been very, very good friends to this day. She's the best. But, I was not expecting that. That was a double take and a spit of my coffee when I saw that," he said of learning that he inspired "The One That Got Away."
Groban then called into question the song's lyrics, noting that he never had a mustang or got matching tattoos as Perry describes in the track.
"I'm very flattered by it," he continued. "But I was surprised by it too."