The Foo Fighters played at an election night party for fictional Democratic presidential candidate Matt Santos on an episode of "The West Wing."
This episode did not show an inauguration concert.
On the evening of Jan. 20, 2021, actor Tom Hanks hosted a "Celebrate America" event in honor of U.S. President Joe Biden's inauguration. The event featured a number of musical performances from acts such as the Foo Fighters, Jon Bon Jovi, and Yo-Yo Ma.
As the concert was underway, some people noticed that many of the musical acts at the real "Celebrate America" event, such as the Foo Fighters, had also performed in the fictional universe of the NBC show "The West Wing," which first aired in 1999.
On "The West Wing," Foo Fighters played their song "Resolve" for an election night concert for fictional Democratic presidential candidate Matt Santos. In the real world, they played their song "Times Like These" (see video above) for an inauguration concert for Biden.
Here's a video from the season seven episode, "Election Day: Part II," featuring actor Bradley Whitford learning how to say the band's name: