NEW YORK — The teenage actress who voices Nickelodeon’s spunky “Dora the Explorer” character was given special treatment after she was caught vaping in a private high school bathroom, according to a lawsuit filed Monday by another student’s parents.

The parents of a 14-year-old former student at Manhattan’s Avenues: The World School, identified as M.S. in a state Supreme Court civil case, say their child was forced out of the private school while 15-year-old actress Fatima Ptacek was only suspended for three days after they were caught using a vapor pen to inhale caramel-flavored water last December.

The lawsuit refers to Ptacek by her initials but identifies her as being the voice of Dora and an actress in an Oscar-winning movie.

“The fact that F.P. is a known actress for being the voice of Dora Explorer may have played a role in why she was ultimately not expelled even after the school threatened as much, and M.S. was expelled instead as a scapegoat,” says the lawsuit by the parents, Nadia Leonelli and Fredrik Sundwall.

Ptacek’s publicist did not return a request for comment Monday.

School spokesman Bruce Bobbin said disciplinary matters are “private and confidential,” and he declined to comment on the lawsuit.