VENTURA, Calif. (AP) — A man once briefly married to Britney Spears was charged Monday with felony stalking after showing up at the pop star’s wedding to longtime boyfriend Sam Asghari.

Jason Alexander, 40, pleaded not guilty in Ventura County court to the charge, along with misdemeanor counts of trespassing, vandalism and battery.

Alexander remained jailed, and appeared in court via video conference. A judge set his bail at $100,000 and issued a restraining order requiring him to stay at least 100 yards from Spears for three years.

Alexander was Spears’ first husband. The two were married for less than three days in 2004 before an annulment.

Spears, 40, and Asghari, 28, were married Thursday at her home in Thousand Oaks, California, in front of several dozen guests including Selena Gomez, Drew Barrymore, Paris Hilton and Madonna.

Alexander, who was a childhood friend of Spears, was streaming live on Instagram when he approached house. He appeared in a mostly empty but decorated room, telling security Spears had invited him.

Deputies responding to a trespassing call detained him, and he was arrested when they learned he had a warrant for his arrest in another county, the Ventura County Sheriff’s Office said.

Alexander’s bail will be reviewed at a hearing scheduled for Wednesday. An email seeking comment from his public defender Matthew Terry was not immediately returned.

Spears was previously married from 2004 to 2007 to Kevin Federline, with whom she shares two sons, ages 14 and 15.

She met Asghari in 2016 on the set of the video for her song “Slumber Party.”

Their wedding came nine months after Spears and Asghari were engaged, and nearly seven months after Spears won her freedom from a court conservatorship that controlled her life and affairs for more than 12 years.

Spears posted about the nuptials on her Instagram and Twitter accounts the following day.

“Wow !!! Holy holy crap !!! WE DID IT !!! WE GOT MARRIED !!! Gggggeeeeezzzzz !!! It was the most spectacular day !!!” Spears said in the posts along with a picture of her and Asghari from the wedding. “The ceremony was a dream and the party was even better !!!”

(Copyright (c) 2022 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed.)

Join our Newsletter for the latest news right to your inbox