Eliza Collins

USA TODAY

Ruth Bader Ginsburg regrets her insults of Donald Trump.

The Supreme Court justice — who has been involved in a scuffle with the presumptive Republican nominee over the past few days — said she regretted her remarks and promised to stay out of it in the future.

"On reflection, my recent remarks in response to press inquiries were ill-advised and I regret making them,” Ginsburg said in a statement. "Judges should avoid commenting on a candidate for public office. In the future I will be more circumspect."

Later Thursday in an interview with NPR, Ginsburg described her remarks as "incautious."

"I said something I should not have said," she remarked. When NPR's Nina Totenberg asked her "if she just goofed," Ginsburg responded: “I would say yes to your question, and that's why I gave the statement. I did something I should not have done. It’s over and done with and I don't want to discuss it anymore.”

In three separate interviews the justice sounded off on Trump, at one point saying she didn't “want to contemplate” the effects a Trump candidacy would have on the court. Ginsburg is known for her liberal bent, but the comments created a firestorm nonetheless because members of the Supreme Court generally avoid getting involved in presidential politics.

Trump called on her to resign from her post and said “her mind is shot.”

But he wasn’t the only one unhappy with the remarks: Ginsburg received widespread (and bipartisan) criticism, even earning editorials from both The New York Times and The Washington Post.

Justice Ruth Bader Ginsburg faces criticism over Trump attacks

Trump wants an apology from Ruth Bader Ginsburg after blistering attack