Sofia Vergara shows ex Joe Manganiello what he’s missing as she shows off her tantalizing curves in skintight dress for dinner with Heidi Klum

Sofia Vergara showed her estranged husband Joe Manganiello what he was missing when she caused a storm on her Insta Stories on Tuesday.

The 51-year-old Modern Family bombshell showed off her curves in a figure-hugging brown Eterne dress that perfectly complemented her hourglass frame.

Sofia twisted from side to side to show off the outfit to its best advantage, letting her silk curtains of caramel-colored hair slide freely over her shoulders.

She balanced expertly on a sky-high pair of black platform stilettos and accessorized with a matching black clutch.

Below the image, she revealed that she was about to enjoy a “girls' night” with Heidi Klum, one of her fellow celebrity judges on America's Got Talent.

Sofia Vergara showed her estranged husband Joe Manganiello what he was missing when she caused a storm on her Insta Stories on Tuesday

The 51-year-old Modern Family bombshell showed off her curves in a figure-hugging brown Eterne dress that perfectly complemented her hourglass frame

Sofia twisted from side to side to show off the outfit to its best advantage, letting her silk curtains of caramel-colored hair slide freely over her shoulders.

The 51-year-old Modern Family bombshell showed off her curves in a figure-hugging brown Eterne dress that perfectly complemented her hourglass frame

She balanced expertly on a sky-high pair of black platform stilettos and accessorized with a matching black clutch

She balanced expertly on a sky-high pair of black platform stilettos and accessorized with a matching black clutch

Meanwhile, Joe, 46, has been romancing busty blonde Caitlin O'Connor, 33, who he has been dating since September.

Caitlin, who is 18 years Sofia's junior, was first linked to Joe a few months after news broke that his marriage was about to end.

Sofia and Joe married in 2015 when Sofia was at the height of her international fame as Gloria Pritchett on Modern Family.

After announcing their divorce in July, insiders told DailyMail.com that they were initially attracted to each other because they were opposites.

However, the sources explained that as time went on, Joe and Sofia's “different attitudes” began to drive a wedge between them.

β€œJoe is a big boy, he likes to play Dungeons & Dragons, he likes wrestling, he likes video games, superhero movies, comic books, going to concerts, and is a big NFL fan. He chases pleasure,” the insider explained.

β€œHe always likes to be out and about and just have a good time. And then when it's time to be serious and when it's time to go to work, he turns on that part of himself, but he's always willing to live life to the fullest and go out and just have fun to have fun and have fun.' the source continued.

'This immediately caught the attention of Sofia, who is quite the opposite: she certainly likes to socialize and go out, but she is more concerned with the finer things in life, the outings, lavish dinners, being a celebrity and everything that comes with it go. That all comes with it,” the insider claimed.

Sofia and Joe married in 2015 when Sofia was at the height of her international fame as Gloria Pritchett on Modern Family;  pictured 2016

Sofia and Joe married in 2015 when Sofia was at the height of her international fame as Gloria Pritchett on Modern Family; pictured 2016

Meanwhile, Joe, 46, has been romancing busty blonde Caitlin O'Connor, 33, who he has been dating since September;  pictured earlier this month

Meanwhile, Joe, 46, has been romancing busty blonde Caitlin O'Connor, 33, who he has been dating since September; pictured earlier this month

β€œShe's been told her whole life that she's super hot and beautiful. It has really gone to her head,” the source further claimed.

“She also has a temper and gets upset over stupid things very easily, while Joe tries to let things bounce off him and go with the flow.”

On the professional front, Sofia is currently awaiting the January release of her upcoming Netflix miniseries Griselda, in which she stars as the infamous drug lord Griselda Blanco, also known as the 'Cocaine Godmother'.

'Cocaine Godmother' was one of Griselda's many nicknames – over the years she was also known as 'La Madrina' ('The Godmother') and 'The Black Widow'.

Born in Colombia in 1943, Griselda quickly became a ruthless criminal who committed her first murder when she was eleven and her victim ten.

In the 1970s, she established herself as a ruthlessly vengeful, pioneering player in the Colombia-Miami drug trade that blossomed in that decade and the decade that followed.

Griselda married several times and produced four children, the youngest of whom she named – in a flash of dark humor – Michael Corleone Blanco.

In the mid-1980s, Griselda was thrown in prison for three murders, two of drug dealers and one of a two-year-old boy.

On the professional front, Sofia is currently awaiting the January release of her upcoming Netflix miniseries Griselda, in which she stars as the infamous drug lord Griselda Blanco.

On the professional front, Sofia is currently awaiting the January release of her upcoming Netflix miniseries Griselda, in which she stars as the infamous drug lord Griselda Blanco.

Born in Colombia in 1943, Griselda quickly became a ruthless criminal who committed her first murder when she was eleven and her victim ten.

Born in Colombia in 1943, Griselda quickly became a ruthless criminal who committed her first murder when she was eleven and her victim ten.

She was released and deported to Colombia in 2004, and in 2012 a motorcyclist shot her dead outside a butcher shop in Medellin.

Sofia herself is no stranger to crime in Colombia, as her older brother Rafael was tragically murdered there in 1998 when a kidnapping attempt went wrong.

β€œWe come from a successful family and he knew he was being targeted for kidnapping,” explained Sofia, whose father was a cattle rancher.

'He always had bodyguards. One day he went out alone and was shot dead. I was devastated,” she added, according to the New York Post.