The premise is incorrect: no episode exists where Bones tells Booth she's pregnant in the series finale.
"The Final Chapter: The End in the End" (Season 12, Episode 12, March 28, 2017):
Earlier pregnancy arc: Season 6 finale reveals Brennan pregnant; Season 7 premiere shows birth of daughter Christine.