A California court ruled on Monday that there is enough evidence against a man who was once married to Britney Spears and showed up unannounced at the pop star’s wedding to proceed with a felony stalking prosecution.

According to court documents, after a two-hour preliminary hearing, Ventura County Judge David Worley ordered that 40-year-old Jason Allen Alexander should be held to explain the charge, as well as misdemeanour counts of trespassing, vandalism, and violence.

Also read: Who is Jason Alexander, Britney Spears’ ex-husband who attempted to crash her wedding?

A representative for Alexander, who did not attend and remains in custody, submitted not guilty pleas to all charges.

Alexander, who was born on October 16, 1981, campaigned for Britney Spears during her conservatorship case and attended multiple #FreeBritney demonstrations.

Last year, Alexander, a longstanding Donald Trump fan, was involved in the US Capitol insurgency and was part of the crowd that assaulted the building.

Also read: So happy for you: Britney Spears’ mother Lynne congratulates singer despite wedding guest list snub

He was arrested in Nashville the same month on three misdemeanour charges: driving while intoxicated, unlawful use of drug paraphernalia, and ownership or casual exchange of a controlled substance. He was released from custody the following day.

On June 9, Spears married longtime boyfriend Sam Asghari at her Thousand Oaks, California, home in front of several dozen guests, including Selena Gomez, Drew Barrymore, Paris Hilton, and Madonna.

Alexander, a childhood friend of Spears’s who she married in 2004 for less than three days, showed up unannounced at the residence before the ceremony, livestreaming his raid on Instagram.

Also read: Britney Spears fires security team after ex-husband crashed wedding

Richard Eubler, a since-fired security guard for Spears, testified at Monday’s hearing that Alexander got inside her house and up to the locked door of Spears’ bedroom while she was inside, according to multiple media reports.

Eubler said Alexander had also tried to enter the property in the days before the wedding.

Alexander’s attorney, Sandra Bisignani, argued there was no evidence he had any intention of harming Spears.