US actress Scarlett Johansson poses on the red carpet for the European premiere of the film 'Avengers: Age of Ultron' in London on April 21, 2015.  AFP PHOTO / JUSTIN TALLIS        (Photo credit should read JUSTIN TALLIS/AFP/Getty Images)
JUSTIN TALLIS/AFP/Getty Images
US actress Scarlett Johansson poses on the red carpet for the European premiere of the film 'Avengers: Age of Ultron' in London on April 21, 2015. AFP PHOTO / JUSTIN TALLIS (Photo credit should read JUSTIN TALLIS/AFP/Getty Images)
Now playing
01:06
Scarlett Johansson faces backlash over role (2018)
Producer Ellen DeGeneres attends Netflix's season 1 premiere of "Green Eggs and Ham" at Hollywood Post 43 on November 3, 2019 in Hollywood, California. (Photo by VALERIE MACON / AFP) (Photo by VALERIE MACON/AFP via Getty Images)
VALERIE MACON/AFP/AFP via Getty Images
Producer Ellen DeGeneres attends Netflix's season 1 premiere of "Green Eggs and Ham" at Hollywood Post 43 on November 3, 2019 in Hollywood, California. (Photo by VALERIE MACON / AFP) (Photo by VALERIE MACON/AFP via Getty Images)
Now playing
02:19
The long, and now controversial, career of Ellen DeGeneres
LOS ANGELES, CA - JANUARY 18:  Actor Tom Hanks attends the People's Choice Awards 2017 at Microsoft Theater on January 18, 2017 in Los Angeles, California.  (Photo by Christopher Polk/Getty Images for People's Choice Awards)
Christopher Polk/Getty Images North America
LOS ANGELES, CA - JANUARY 18: Actor Tom Hanks attends the People's Choice Awards 2017 at Microsoft Theater on January 18, 2017 in Los Angeles, California. (Photo by Christopher Polk/Getty Images for People's Choice Awards)
Now playing
02:07
Tom Hanks' iconic roles throughout the years
sophie turner joe jonas las vegas
instagram/diplo
sophie turner joe jonas las vegas
Now playing
01:23
'GoT' star married by Elvis impersonator in Las Vegas
CBS
Now playing
01:00
Hillary Clinton makes cameo on 'Murphy Brown'
SYDNEY, AUSTRALIA - AUGUST 27:  Jane Fonda wears Chopard at the Sydney Opera House on August 27, 2018 in Sydney, Australia. (Photo by Caroline McCredie/Getty Images for Chopard)
Caroline McCredie/Getty Images AsiaPac/Getty Images for Chopard
SYDNEY, AUSTRALIA - AUGUST 27: Jane Fonda wears Chopard at the Sydney Opera House on August 27, 2018 in Sydney, Australia. (Photo by Caroline McCredie/Getty Images for Chopard)
Now playing
02:09
Jane Fonda opens up in new documentary
Tom Hanks as Mister Rogers
Sony Pictures
Tom Hanks as Mister Rogers
Now playing
00:45
Tom Hanks is your new neighbor Mister Rogers
NBC
Now playing
00:51
Items from 'The Office' up for auction
shutterstock/getty/cnnmoney
Now playing
00:54
Comcast outbids 21st Century Fox for Sky
Instagram/Ryan Reynolds
Now playing
00:58
Ryan Reynolds trolls director as car crashes
FremantleMedia/SYCOtv/NBC
Now playing
01:08
'America's Got Talent' crowns new winner
A&M/Octone Records
Now playing
01:13
Super Bowl performance rumors stir controversy
henry cavill superman mxp vpx_00000114.jpg
Warner Brothers
henry cavill superman mxp vpx_00000114.jpg
Now playing
00:48
Henry Cavill's role as 'Superman' in question (2018)
LAS VEGAS, NV - SEPTEMBER 23:  Recording artist Drake performs onstage at the 2016 iHeartRadio Music Festival at T-Mobile Arena on September 23, 2016 in Las Vegas, Nevada.  (Photo by Kevin Winter/Getty Images)
Kevin Winter/Getty Images North America/Getty Images
LAS VEGAS, NV - SEPTEMBER 23: Recording artist Drake performs onstage at the 2016 iHeartRadio Music Festival at T-Mobile Arena on September 23, 2016 in Las Vegas, Nevada. (Photo by Kevin Winter/Getty Images)
Now playing
00:50
Drake doles out $25K at concert
Vanessa Marquez as Nurse Wendy Goldman on "ER."
Alice S. Hall/NBCU Photo Bank
Vanessa Marquez as Nurse Wendy Goldman on "ER."
Now playing
01:09
'ER' actress shot and killed by police
Pallbearers carry the casket out of Greater Grace Temple at the end of the funeral for Aretha Franklin, Friday, Aug. 31, 2018, in Detroit. Franklin died Aug. 16, 2018 of pancreatic cancer at the age of 76. (AP Photo/Jeff Roberson)
Jeff Roberson/AP
Pallbearers carry the casket out of Greater Grace Temple at the end of the funeral for Aretha Franklin, Friday, Aug. 31, 2018, in Detroit. Franklin died Aug. 16, 2018 of pancreatic cancer at the age of 76. (AP Photo/Jeff Roberson)
Now playing
03:59
Aretha Franklin's funeral fit for a queen
CNN —  

Scarlett Johansson has opted to withdraw from a film in which she was set to play a transgender man after her casting drew criticism from the LGBTQ community.

Johansson said an exclusive statement to Out.com that her decision was made “in light of recent ethical questions raised surrounding my casting.”

CNN has reached out to Johansson’s representatives for further comment.

Johansson had been set to play transgender man Dante “Tex” Gill, who owned a string of massage parlors in Pittsburgh that were fronts for prostitution in the 1970s and 1980s, in a film about his life.

Johansson’s casting, however, came at a moment when the LGBTQ community and allies are encouraging the casting transgender actors in transgender roles.

The recent debut of Ryan Murphy’s FX drama “Pose,” which featured the largest-ever cast of transgender actors in series regular roles on a television series, has been pointed to as an shining example this practice in action.

After the immediate backlash to Johannson’s casting began, the actress issued a statement to Bustle that was criticized for its dismissive nature.

In her new statement, Johansson acknowledges making a misstep.

“Our cultural understanding of transgender people continues to advance, and I’ve learned a lot from the community since making my first statement about my casting and realize it was insensitive,” she said. “I have great admiration and love for the trans community and am grateful that the conversation regarding inclusivity in Hollywood continues.”

Johansson has found herself in the middle of a casting controversy before.

Her casting in the film “Ghost in the Shell,” based on a popular Japanese manga series, prompted accusations of white-washing. The movie went ahead as planned and was released in 2017.

“While I would have loved the opportunity to bring Dante’s story and transition to life, I understand why many feel he should be portrayed by a transgender person, and I am thankful that this casting debate, albeit controversial, has sparked a larger conversation about diversity and representation in film,” Johansson added.