Sofia Vergara and her ex Nick Loeb's bitter custody battle over embryos may be coming to an end.

The former couple created two embryos via invitro fertilization in 2013, and since then Loeb has tried to force Vergara to let him bring them to term against her will. And he has tried everything — including creating trusts in Louisiana for the embryos, a state where they are considered a "juridical person" until they are "implanted in the womb." This allowed the embryos to sue Vergara for not allowing them to live and use their trust.

It doesn't get any more hardcore crazy than that.

But Vergara has had enough, and made a move to stop Loeb's legal nonsense once and for all.

According to People, Vergara asked the State of California’s Superior Court to permanently keep Loeb from making moves that subvert their original contract.

sofia vergara embryos
photo: Splash

Vergara is arguing that the former couple — who broke up in 2014 — already have an agreement that requires the actress' written consent to unfreeze the embryos and bring them to term.

sofia vergara nick loeb
photo: Splash

Despite the existence of this contract, Loeb has not dropped his pursuit of the embryos and called Vergara's refusals “tantamount to killing them” in an op-ed for The New York Times. He claims that if women have been able to bring embryos to term without the consent of the father, the same should apply to men.

Creating a trust for the embryos was a violation of that agreement, which puts him in breach.

sofia vergara
photo: Splash

They also called Loeb out over his two exes that had abortions during their relationships with him, which the documents claim are "directly contradictory to his alleged pro-life views.”

nick loeb
photo: Splash

This isn't the first time Vergara's legal team has tried to use those abortions to stop Loeb. Back in 2016, a move to get Loeb to identify the two women led to his withdrawal of one of his lawsuits in December. “I would rather go to jail than reveal the names. I believe we have to protect a woman’s right to privacy,” Loeb told Page Six.

Vergara is now not only asking for a permanent injunction that will stop Loeb from getting access to the embryos without her written permission...

sofia vergara
photo: Splash

She's asking Loeb to pay up big time as well by asking for "unspecified general and also special and punitive damages and court costs she’s accumulated," according to People.

sofia vergara
photo: Splash

We hope that this resolves the matter.

sofia vergara embryos
photo: Splash

This cannot be easy to go through.