The battle over Sofia Vergara’s embryos took an extraordinary turn Tuesday — when a right-to-live lawsuit was filed on behalf of the fertilized eggs against their mom.

The female embryos are listed as plaintiffs “Emma’’ and “Isabella” in the Louisiana court papers, which come amid her knock-down, drag-out legal battle with former fiancé Nick Loeb, sources told The Post.

Loeb had already sued the “Modern Family” star in California for custody of the embryos, which the couple created when they were still together in 2013.

The potentially landmark new case in Louisiana — a traditionally pro-life state that offers special legal protections for frozen embryos — also lists the embryos’ “trustee,’’ James Carbonnet, as a plaintiff, sources said.

The new lawsuit contends that Emma and Isabella, by not being born, have been deprived of an inheritance from a trust that has been created for them in the Louisiana, according to sources.

It asks that the frozen embryos be given to Loeb so that they can live and receive the trust set up for them, which would fund, among other things, their healthcare and education, sources said.

The lawsuit also contends that a contract Vergara and Loeb previously signed at the ART Reproductive Center in Beverly Hills should be voided since it violated California code and Louisiana law, according to sources.

The contract said neither party could use the embryos without the consent of the other. But the lawsuit argues that it didn’t say what should happen if Loeb and Vergara were to split.

Loeb, a 41-year-old businessman, spends his time between New York and Florida but has ties to Louisiana.

He graduated from Tulane University and still serves as a reserve police officer in the state, according to sources.

The then-happy couple first turned to in-vitro fertilization to have a child of their own in 2013.

This article originally appeared in Page Six.