Britney Spears; Jason Alexander.Photo: Todd Williamson/Getty; Chris Farina/Corbis/Getty

Britney Spears attends the 2016 Billboard Music Awards at T-Mobile Arena on May 22, 2016 in Las Vegas, Nevada. (Photo by Todd Williamson/Getty Images for dcp); Jason Alexander, former husband of Britney Spears arrives at the West Coast opening of artist Russell Young’s art auction held at Minotti Los Angeles, to benefit The Art of Elysium, a non-profit organization of artists, who dedicate their time and talent to help at risk and hospitalized children. (Photo by Chris Farina/Corbis via Getty Images)

Britney Spearshas been granted a restraining order against her ex-husband Jason Alexander days after hebroke into her homejust before her wedding ceremony.

Spears' lawyer Mathew Rosengart now tells PEOPLE her restraining order against Alexander “was granted.” Rosengart adds that “he was charged with felony stalking and is incarcerated.”

“I extend my thanks to the Ventura County Sheriff’s Office and District Attorney’s Office for their good work and professionalism, and for the seriousness with which they are taking the matter,” Rosengart says.

TMZ wasfirst to reportthe news.

Spears' restraining order, which says Alexander can’t go within 100 yards of Spears, will last for three years,Fox Newsreports.

Alexander made a virtual appearance at his court hearing Monday and entered a not-guilty plea, the outlet added.

Along with the stalking felony, Alexander has been charged with misdemeanor counts of trespassing and refusing to leave private property, vandalism, and battery, per his booking form with the Ventura County Sheriff’s Office. His bail is set at $100,000.

He was also arrested on an out-of-county warrant for two felonies: grand theft embezzlement and receiving stolen property. The bail for those charges is $20,000.

“So, here’s the inside scoop, guys, of the bulls— wedding. Jason Alexander, what’s up,” he said, greeting the workers and even shaking one’s hand.

“My name’s Jason Alexander. Britney invited me here,” Alexander claimed. “Britney Spears invited me here. She’s my first wife, my only wife. I’m her first husband.”

RELATED VIDEO: Britney Spears and Sam Asghari are Married!

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.

“I’ve done everything I can while being out of the country to keep everyone safe,” Vicky wrote on her Instagram Story. “Thank you to all the absolutely amazing and incredible fans for alerting me of so much. You are blessings. Thank you. Everyone is safe.”

Spearswas married to Alexander, a childhood friend, for 55 hours in January 2004, after the pair eloped at the Little White Wedding Chapel in Las Vegas.

Alexander previously pleaded guilty in January to violating an order of protection and aggravated stalking against an unidentified woman,TMZreported at the time. He was given 11 months and 29 days of probation.

Britney Spears and Sam Asghari.J. Merritt/Getty

BEVERLY HILLS, CA - APRIL 12: Honoree Britney Spears (L) and Sam Asghari attend the 29th Annual GLAAD Media Awards at The Beverly Hilton Hotel on April 12, 2018 in Beverly Hills, California. (Photo by J. Merritt/Getty Images for GLAAD)

Spears' wedding eventually went off without a hitch, and she and Asghari, 28,said “I do” before an audience of about 60 guests, includingDrew Barrymore,Madonna,Paris HiltonandSelena Gomez.

“Britney walked herself down the aisle. She looked absolutely stunning in her main dress,” a source told PEOPLE. “She cried happy tears at some moments.”

The insider added: “It ended up being the happiest night for Britney. She wanted a fairytale wedding and she got it. Britney looked stunning. She is very excited to be married. She looks forward to a future with Sam.”

source: people.com