Roth IRA contribution

My husband and I each contributed to a Roth IRA in 2021. Late in the year we were expecting a one-time income that would have put us over the income limit to contribute to a Roth IRA. In anticipation of this, we withdrew our contributions and earnings as an excess contribution. However, we ended up not receiving the extra income until 2022. Can we go back and make Roth contributions for 2021?