Republican Dan Cox, a Trump backer who sought to succeed Hogan, was routed by Democratic Gov. Wes Moore in the 2022 election.