Megan Fox and Brian Austin Green
Megan Fox (L) and Brian Austin Green attend the PUBG Mobile's #FIGHT4THEAMAZON Event at Avalon Hollywood on December 09, 2019 in Los Angeles, California. Rodin Eckenroth/Getty Images

Brian Austin Green is the king of petty. The “90210” alum threw shade at his ex-wife Megan Fox after the latter posted a photo professing her love for her new boyfriend.

On Wednesday, the “Teenage Mutant Ninja Turtles” star shared an image of her with her new boyfriend, Machine Gun Kelly. The black and white mirror selfie showed the actress in a bikini and the rapper shirtless. Fox’s caption read “Achingly Beautiful Boy... My heart is yours.”

Green posted his own version on Instagram, sharing photos of his four sons -- three with Fox. The 47-year-old used the exact same caption, "Achingly beautiful boys...... My heart is yours," as he shared a photo of Noah Shannon, 7; Bodhi Ransom, 6; Journey River, 3; and Kassius, 18, who he shares with ex- Vanessa Marcil, People noted.

 
 
 
 
 
 
 
 
 
 
 
 
 

Achingly beautiful boys...... My heart is yours

A post shared by Brian Austin Green (@brianaustingreen) on

Green confirmed that he and Fox had separated last year. In May, the couple filed for divorce citing “irreconcilable differences” after being married for nearly 10 years.

In July, Fox and Machine Gun Kelly confirmed their relationship on the “Give Them Lala...with Randall” podcast. The “Jennifer’s Body” star noted the instant chemistry between the two. She even called the rapper his “twin flame.”

"Instead of a soulmate, a twin flame is actually where a soul has ascended into a high enough level that it can be split into two different bodies at the same time. So we're actually two halves of the same soul, I think," Fox said.

As for Green, he has been seen out with a few women, including Australian model Tina Louise, but has not confirmed anything. As for how he’s dealing with his ex-wife’s new high-profile relationship, the actor says he’s just trying to “ignore it.”

"You can if you ignore it and avoid it which is what I try and do," he said on the “ Hollywood Raw ” podcast.

"I try to not read anything or look at anything and not involve myself in it. Just keep my head down and do what I do and focus on the kids. I know she’s going to do the same thing."