In a new interview with Women’s Wear Daily, Megan Fox is opening up about the pregnancy losses she’s faced. Along with a recent miscarriage, Fox told the outlet she had an ectopic pregnancy when she was younger, something she’s never made public until now.

The admission comes as Fox promotes her book of poems titled Pretty Boys Are Poisonous, which was released on Nov. 7. She says she wrote the book in the hopes of connecting with other women who have had similar experiences, noting, “something like this I felt had to go into the public because it’s hopefully going to be much more impactful than a movie I’ve done or anything I’m going to post on f*cking Instagram.”

Fox wrote two poems about a recent miscarriage she experienced with her current partner Machine Gun Kelly, whose real name is Colson Baker, which she explains wasn’t easy for her to write about.

“That experience was so much harder than I would’ve anticipated it being, and I’ve really analyzed ‘why was that? Why was that so difficult for me?’ Because when I was younger, I had an ectopic pregnancy, I’ve had other things that I’m not going to say because God forbid the world will be in an uproar. But I’ve been through other similar issues, but not with someone who I was so in love with,” she says, referring to the musician.

“And so that love element really made this miscarriage really tragic for me and left me with a lot of grief and a lot of suffering,” she continues. “So I put it into a lot of writing. He’s written about them in his albums as well, he wrote a couple of songs about the miscarriage. So it just felt like something that I could address publicly because it’s been addressed in one way through him, so I have a space to express as well.”

Fox doesn’t share the circumstances of her prior pregnancy loss, noting that none of the men she writes about are named in the book. Ectopic pregnancy occurs when a fertilized egg implants and grows outside the main cavity of the uterus, according to the Mayo Clinic. Per the Cleveland Clinic, ectopic pregnancies occur in around two percent of all pregnancies, but they can be life-threatening if not treated quickly.

As a mom to sons Noah, 11, Bodhi, 9, and Journey, 7, Fox hopes the book will help shape the way her boys relate to their own relationships with women. “It’s very important to me to raise boys who are not like these men that I’ve been with,” she says. “It’s very important for me to raise boys who are able to have a very deep emotional intimacy with their partner.”

“It’s very important to me that they are not liars, that they are able to be fully transparent and honest and respectful and experience at some point in their life, I don’t expect them when they’re 16 to have a sacred love, but I do expect them at some point to get to that place, because I am their first introduction into women and the way that I love them is going to influence the way they are allowed to love others when they go out into a relationship,” she continues. “And so I hope that just through my transparency in the way that I engage with them, in the way that I am demonstrative and affectionate with them, that allows them to love in a really healthy way.”