Ruth Bader Ginsburg says she regrets attacking Donald Trump, according to a statement Thursday from the Supreme Court justice.

“On reflection, my recent remarks in response to press inquiries were ill-advised and I regret making them,” reads Ginsburg’s statement.

“Judges should avoid commenting on a candidate for public office. In the future I will be more circumspect.”