Gov. Ron DeSantis, a Republican who has emerged as a leader of the Trump wing of the party and is said to be considering a 2024 presidential run, also faces re-election next year.
The presence of Mr. DeSantis and Mr. Rubio on the same ballot is almost certain to boost turnout on both sides and elicit massive small-donor contributions in a state with several big, expensive media markets.
Ms. Demings seemed to be leaning toward the governor race earlier this year: When Representative Charlie Crist declared his Democratic candidacy against Mr. DeSantis this spring, her team released a polished biographical video on the same day.
Nikki Fried, a Democrat who serves as Florida agriculture commissioner, is also running for governor. She is one of the few statewide officials who is a Democrat; Florida’s other senator, Rick Scott, is a Republican.
In 2016, Mr. Rubio easily defeated his Democratic challenger, Patrick Murphy, then a congressman. But that same year Mr. Trump demolished him in the Republican presidential debates, mocking him as “Little Marco” and hammering him for supporting a bipartisan immigration bill that would have offered undocumented immigrants a path to citizenship.
Over the past four years Mr. Rubio has kept a low profile, careful to support Mr. Trump politically, while politely parting with him over several foreign policy issues, including Mr. Trump’s ill-fated overtures to North Korea and Russia.
The former president reciprocated in April, offering his onetime critic a “Complete and Total Endorsement” to quell rumors of a primary challenge against Mr. Rubio from the right.