Maria Contreras-Sweet, who was expected to sign a deal to take over the troubled Weinstein Co. as soon as today, is instead pulling her nearly $500 million offer, The Post has learned.

Contreras-Sweet, the head of the Small Business Administration under President Obama, is backing away from the deal after growing infuriated that New York Attorney General Eric Schneiderman was insisting on inserting a monitor on the board of the new company, sources said.

The businesswoman was unhappy with the AG’s move because she had promised — if her offer for the embattled Hollywood studio was accepted — to appoint a majority female board of directors, sources said.

Plus, Contreras-Sweet was kept out of the negotiations with the AG that resulted in an agreement to put a monitor in place, sources said.

On Sunday afternoon, Schneiderman filed a 38-page lawsuit against the Weinstein Co. and Harvey and Bob Weinstein alleging a series of civil and human rights violations tied to Harvey’s alleged decades-long history of harassing women.

The state’s top lawman, outside the lawsuit, is seeking to install a monitor at the Weinstein Co. because he is concerned David Glasser, the chief operating officer when Harvey Weinstein led the company, would be named chief executive under a Contreras-Sweet-led company, sources said.

Schneiderman believes Glasser did not do enough to protect employees, sources said.

Contreras-Sweet has been in exclusive talks to buy the Weinstein Co. for weeks and had worked out a deal to compensate victims of alleged abuse by Harvey Weinstein, sources said. The exclusive period expires on Feb. 11.

Working with Ron Burkle’s Yucaipa Companies and Lantern Asset Management, which were going to provide financing, the 62-year old Californian, in addition to providing the normal indemnifications from the Weinstein Cos.’ existing insurance carries, had pledged the profits from five future movies to victims.

Those profits are estimated to total at least $50 million, sources said.

In addition, the Contreras-Sweet-led group was ready to set up an additional contingency fund of $10 million, according to a source with knowledge of the negotiations.

Gloria Allred, the women’s rights lawyer who was representing a number of the victims, had given her blessing to the Contreras-Sweet deal, sources said.

The deal would have ousted Bob Weinstein and paid nothing to him or his brother, Harvey, whose decades-long alleged sexual abuse of numerous women — from actresses to assistants — forced him to resign shortly after the scandal erupted in October.

The ouster and the accompanying reports that some board members may have been aware of Harvey’s abuse, threw the future of the studio — which has produced “Inglorious Bastards,” “The King’s Speech” and many other films — into jeopardy.

Future movies are on hold, including “Mila 18,” an adaptation of Leon Uris’ bestselling book about the Warsaw Ghetto Uprising.

Colony Capital, an investor known for investing in distressed Hollywood assets, had emerged early on as a potential new owner but dropped out in November.

More recently, Qatar-owned Miramax, Harvey and Bob Weinstein’s first studio, which they sold to Walt Disney — which subsequently spun it off to new owners — had also expressed an interest in buying the Weinstein Co.

Miramax is owned by the BeIn Media, a Qatar broadcaster that owns a vast film library.

The Weinstein Co. has been able to keep the lights on thanks to the success of “Paddington 2,” sources said. The film has brought in $205 million worldwide, according to Boxofficemojo.

Contreras-Sweet’s bid would have avoided a Chapter 11 bankruptcy and preserved the jobs of about 200 people, sources said.

A handful of other bidders — including New York production company Killer Content and Lionsgate studio, according to reports — would have required a bankruptcy proceeding as part of a deal in order to protect the new owner from future liabilities.

Neither Contreras-Sweet nor Burkle could be reached for comment.