Blake Lively and Penn Badgley

Blake Lively and Ryan Reynolds shocked the world -- including Lively's ex-boyfriend and Gossip Girl co-star Penn Badgley -- with their secret wedding Sunday.

"I actually didn't know until last night, but I think it's fantastic," Badgley, told People. "I couldn't be happier for her."

Blake Lively and Ryan Reynolds get married

Badgley and Lively began dating in 2007 shortly after Gossip Girl began. The couple, who also have played on-and-off lovers on the CW drama, broke up in 2010. As with Badgley,  Lively met Reynolds on the set when she was cast as his love interest in 2011's Green Lantern. They started dating in October that year.

"I'm so happy for her," said Badgley, who learned of the wedding by reading reports and speaking to people close to her. "I think it's everything that it should be," he added of Lively's relationship with Reynolds.

At least there's still a chance for Lively and Badgley's Gossip Girl characters, S and Lonely Boy, to find their happily ever after. The final season of Gossip Girl premieres on Monday, Oct. 8 at 9/8c on The CW.