October 30, 2022 | 3:05pm

Frankie Jonas didn’t have to look too far for costume inspiration this year.

The former child actor hilariously trolled big brother Joe Jonas by dressing up as him for Halloween – with girlfriend Anna Olson channeling the singer’s famous ex Taylor Swift.

The two hilariously poked fun at the former couple’s 2008 romance and reenacted a scene from “Jonas Brothers: The 3D Concert Experience.”

In photos posted to InstagramFrankie, 22, donned an all-black ensemble, featuring a vest and a “Burnin’ Up” tee, which resembled the look the Jonas Brothers rocker, 33, wore on stage while performing Swift’s hit “Should’ve Said No.”

Olson, for her part, opted for a glittering silver mini dress, similar to the one Swift, 32, rocked during her guest appearance on the Jonas Brothers’ tour.

“y’all win halloween this year. it’s settled,” one fan wrote on Instagram.
Instagram

The photo dump also included a close-up image of their hands, wearing what Frankie described as “matching purity rings” – a nod to his family’s choice of jewelry in the early days of their Disney Channel careers.

“You can’t be serious this is unbelievable,” one fan commented, while another wrote, “Best Halloween costume HANDS DOWN.”

“y’all win halloween this year. it’s settled,” a third fan chimed in, while another wrote, “This is so f–king funny. Y’all win lmao.”

Frankie and Olson, who have been dating for several months, also shared a video to TikTok, which was captioned, “Fighting off the horny celibate teens as joe and taylor from the 3d movie.”

Swift briefly dated the “Sucker” singer from July to October 2008. He then famously broke up with her in a “27-second phone call,” which Swift went on to reference in her song “Forever & Always.”

Nevertheless, it’s all water under the bridge as the pair have since moved on with different partners. Joe wed “Game of Thrones” star Sophie Turner in 2019, while Swift has been dating actor Joe Alwyn for more than five years.

The ex-pair did at one point amicably reunite as friends in November 2021however, following Swift’s successful “Saturday Night Live” gig.