"Johnny's actually one of my best friends," the Big Bang Theory star said

By Michele Corriston
September 28, 2015 10:40 AM

Less than a week before announcing their divorce, Kaley Cuoco gushed about her estranged husband Ryan Sweeting and his relationship with her ex – and current costar – Johnny Galecki.

“We dated like five years ago, so I think everyone’s moved on,” Cuoco said on Watch What Happens Live on Sept. 20. “Johnny’s actually one of my best friends. It’s a situation that ended well, I understand sometimes it doesn’t.”

Johnny Galecki (left) Ryan Sweeting and Kaley Cuoco

As for tennis player Sweeting?

“Ryan loves him, Johnny loves him. It’s been a long time, so it’s great,” she said. “I got lucky. It could have been horrible.”

On Friday, Cuoco, 29, and Sweeting, 28, told PEOPLE exclusively that they have split after 21 months of marriage. Five nights earlier on The Big Bang Theory‘s season 9 premiere, Cuoco’s character Penny wed Galecki’s Leonard.

“The few times Kaley and Ryan were out together recently, the tension was noticeable,” a source told PEOPLE over the weekend. “You could tell the honeymoon phase had ended.”