As part of the negotiation to get Kevin McCarthy to the speakership back in January, Republicans made a rule change in the House which allowed just one member of Congress to bring up for a vote a measure that would let the entire body vote for his ousting.
Pelosi removed this rule when she was speaker, but to be fair she was also really good at getting her party to stay in line.
It will be interesting to see if Republicans take that rule away to avoid another mess if they manage to vote in a new speaker.