Supreme Court Justice Ruth Bader Ginsburg says she regrets calling Donald Trump a "faker" and making other disparaging remarks about the candidate.

Supreme Court Justice Ruth Bader Ginsburg has apologized for what she called “ill-advised” comments she made earlier this week criticizing presumptive Republican presidential nominee.

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

In an interview with the New York Times over the weekend, Ginsburg didn’t hide her contempt for Trump, saying, “I can’t imagine what the country would be — with Donald Trump as our president” and that her late husband would have said it was “time for us to move to New Zealand.”

She doubled down on those statements Monday to CNN, calling Trump a “faker.”

“He has no consistency about him. He says whatever comes into his head at the moment. He really has an ego…How has he gotten away with not turning over his tax returns? The press seems to be very gentle with him on that,” Ginsburg continued.

While it’s not surprising that the liberal justice, who was appointed by President Bill Clinton in 1993, would be no fan of Trump, her harsh words were surprising coming from a sitting Supreme Court Justice.

As NPR’s Nina Totenberg reported Wednesday on All Things Considered, “it’s not that modern-day justices haven’t been overheard making comments about presidential candidates, but Ginsberg is the first I’m aware of in modern times, anyway, to publicly criticize a presidential candidate.”

On Wednesday, Trump called on Ginsburg to resign in a series of tweets.