After you file

So let's say I take out money in 2020 and re-deposit or roll-over in 2022.  What would the take implications be in 2020 and 2021 and would I be able to recoup any taxes attributable to the withdrawal if I had to pay any additional taxes prior to the re-deposit / roll-over?  In other words would I need to file an amendment of 2020 and 2021 or is there going to be some other method to report and avoid current year taxes?  Thanks    dofdear aka BillyBob