Who would get the longest road?
No. The rules are pretty clear about this:

Set the “Longest Road” card aside if—after a longest road is
broken—several players tie for the new longest road or no one has a 5+
segment road. The “Longest Road” card comes into play again when only
1 player has the longest road (of at least 5 road pieces)

Your example exactly meets the criteria, &quot;after a longest road is broken&quot; and &quot;several players tie for the new longest road&quot;.