Supreme Court Justice Ruth Bader Ginsburg said Thursday she regrets her repeated attacks on Donald Trump — but stopped short of apologizing.

“On reflection, my recent remarks in response to press inquiries were ill-advised, and I regret making them,” the outspoken liberal jurist said in a statement.

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

The statement came after Ginsburg came under intense criticism, even from her liberal allies, for thrusting herself into a presidential election.

In three media interviews over the past week, Ginsburg slammed the Manhattan mogul as unfit for the presidency.

“He is a faker,” she told CNN Monday. “He has no consistency about him. He says whatever comes into his head at the moment.”

Ginsburg, 83, also said she’d consider leaving the country if Trump wins.

“I can’t imagine what this place would be — I can’t imagine what the country would be — with Donald Trump as our president,” Ginsburg told The New York Times, suggesting she might move to New Zealand if he’s elected.

Trump furiously tweeted a response, calling for her to step down.

“Justice Ginsburg of the US Supreme Court has embarrassed all by making very dumb political statements about me. Her mind is shot — resign!” he tweeted earlier this week. He later tweeted a warning to the justice: “If I win the presidency, we will swamp Justice Ginsburg with real judges and real legal opinions!”