Role of proton-antiproton regeneration in the late stages of heavy-ion collisions