AN ex-boyfriend of Madonna‘s former trainer, Tracy Anderson, claims she swindled him out of $1 million and drove him into bankruptcy.

Anderson — who, as we revealed Saturday, has been ditched by the Queen of Pop — is being sued by creditors of Glynn Barber, who was persuaded to invest in her company.

In court papers, Barber alleges that during his yearlong relationship with Anderson, he plunged a fortune into financing two fitness studios, a DVD and a Mercedes. But he claims she refused to pay him a return on her profits, forcing him to file for bankruptcy after they split in June 2007.

“She used her female charms to manipulate me to invest $1 million in her company,” Barber told Page Six yesterday.

“I was an easy target. She told me she was a Power Ranger. She told me she was in the musical ‘Cats’ for four years. She said her ex-husband, Eric, played for the Knicks . . . None of this turned out to be true.”

When Anderson started training Gwyneth Paltrow and Madonna, the two split up, “and she elbowed me out,” Barber said.

Barber, an engineer and machinist, also told us, “I made Madonna’s fitness equipment for $13,000 and Tracy sold it to her for $26,000. She made a fortune from using Madonna’s name.”

Barber said he felt sorry for Anderson’s new boyfriend, Philippe van den Bossche, who quit his job as head of Madge’s Raising Malawi charity to live with Anderson in New York: “I wish there was some way to inform her new boyfriend that he is playing with ‘The Cobra.’ Tracy absolutely has some voodoo capability.”

Anderson denies all of Barber’s allegations in court papers. Her lawyer, Peter Moulinas, didn’t return our call. Her publicist, Julia Van Nice, didn’t return e-mails. When we reached Van Nice by phone, she said, “I am too busy. I am on a conference call.”