Ellen Page arrives at the inaugural Peace Ball on January 19, 2017 in Washington, DC. (Photo by Scott Olson/Getty Images)

Actress Ellen Page wrote an emotional Facebook post on Friday in which she said her decision to work with Woody Allen “is the biggest regret of my career.” She appeared in the 2012 film To Rome With Love, which was written and directed by Allen, and also featured other prominent Hollywood stars like Alec Baldwin, Penelope Cruz and Jesse Eisenberg.

“I did a Woody Allen movie and it is the biggest regret of my career. I am ashamed I did this,” Page wrote in the post. “I had yet to find my voice and was not who I am now and felt pressured, because ‘of course you have to say yes to this Woody Allen film.’ Ultimately, however, it is my choice what films I decide to do and I made the wrong choice. I made an awful mistake.”

Few people in Hollywood have publicly called out Woody Allen for the sexual assault allegations that have been made against him, and some, like Kate Winslet, have taken heat for defending the decision to work with him. Page did not elaborate on why she so deeply regrets having worked with Allen, however the anecdote was part of a larger point she makes about the sex and power dynamics in Hollywood that have been stirred up since the Harvey Weinstein scandal erupted last month.

She also recounted a particularly uncomfortable encounter with Brett Ratner, the director who’s been accused by numerous women of various forms of sexual misconduct. Page wrote that at a a cast and crew “meet and greet” before filming on X Men: The Last Stand began, Ratner outed her as gay before she had publicly come out of the closet — or even realized the nature of her own sexuality. “I was eighteen years old. He looked at a woman standing next to me, ten years my senior, pointed to me and said: ‘You should fuck her to make her realize she’s gay.'”

She continued, recalling, “I was a young adult who had not yet come out to myself. I knew I was gay, but did not know, so to speak. I felt violated when this happened. I looked down at my feet, didn’t say a word and watched as no one else did either. This man, who had cast me in the film, started our months of filming at a work event with this horrific, unchallenged plea. He ‘outed’ me with no regard for my well-being, an act we all recognize as homophobic.”

She goes on to recount the run-ins she had with Ratner during her time making the film, and how she says he acted with impunity on the set and she was reprimanded when she stood up to him.

“What I want the most, is for this to result in healing for the victims,” she wrote. “For Hollywood to wake up and start taking some responsibility for how we all have played a role in this.”

This is a disgrace. Where is the UK foreign office in all of this? Aras Amiri now joins another British-Iranian, Nazanin Zaghari-Ratcliffe, in notorious Evin prison on bogus charges. @foreignofficehttps://t.co/DJX0knhdot