Retirement tax questions

Hi DanaB27 - I actually requested withdrawal of everything in the Roth IRA - proper contributions, excess contributions, and earnings.  I zeroed it out.  That's why the Vanguard rep told me I needed to put it all back into the Roth IRA using a rollover and only withdraw the excess.  But I'm afraid if I put the money back in using a Rollover it will count as yet another excess contribution - this time for 2023.  Is that how rollovers work?