Retirement tax questions

It is your money and you can decide when and how much to pay back.  You will owe taxes for 2021 on the amount not paid back on December 31, 2021.