Meghan Markle's ex-husband is creating a comedy TV show inspired by their split and her relationship with Prince Harry. Pictured: Markle attends the Annual Charity Day Hosted By Cantor Fitzgerald And BGC at the Cantor Fitzgerald Office on Sept. 11, 2013 in New York. Getty Images/Janette Pellegrin

Meghan Markle's estranged husband, Trevor Engelson, may have gotten inspiration for his new TV show from her.

Engelson is reportedly creating a TV show for Fox that appears to be inspired by his story with Markle, who is now dating Prince Harry. The TV show will tell the story of a divorced woman who remarries a prince and shares custody of her child with her estranged husband, Us Weekly reported.

"Divorce is hard. Sharing custody is harder. Sharing custody with the British Royal family when your wife marries a prince, in the unforgiving spotlight of London’s tabloid media, is next level," the synopsis of the yet-to-be-titled show read.

Deadline noted that the comedy show is fictional and the lead characters were not necessarily based on Markle or Engelson, despite the similarities in the stories. In addition, the "Suits" star is not involved in the development of the project.

The upcoming TV show originates from Engelson and fellow producer Dan Farah's conversation about a hypothetical scenario in which the former had kids with Markle during their two-year marriage and had to share custody of their children with the British royal family. Markle's romance with Prince Harry has been making headlines since they started dating last year, and their engagement and wedding are expected to happen soon.

Engleson and Farah reportedly loved the idea of making a TV series out of it and pitched the story to the 20th TV. "Modern Family" executive producer Danny Zucker is set to write the script, while British TV director Christine Gernon had been tapped to helm the series.

Engelson has two series on the air that he executive produces. "Snowfall," which airs on FX, has been renewed for a second season, while the upcoming dramedy "Heathers" will air on Paramount Network. He is also currently producing Netflix's "Time After Party." Meanwhile, Farah's TV series credits include "Famous In Love" and "The Shannara Chronicles."

While Engelson is working on a new show, Markle reportedly plans to leave her TV show, "Suits," if she marries Prince Harry. "No one gets the impression she's staying on the show much longer," an insider said. "They believe she's going to marry Harry."

In addition, there have been signs indicating that Markle plans to move to London for good. For instance, her clothes have taken a sharp turn towards British brands. Additionally, just recently, the actress canceled her VIP Audi North America rental car contract because she "will be spending more time in the UK" starting November, one source told Elle.

What can you say about the TV show Markle's ex created? Drop a comment below.