Yes, if you sent your return in using the 2021 software, then that will count as your 2021 return, not a 2022 return.
You may want to contact the CRA and let them know what's happened. If you are in Canada or the United States, you can call the CRA at 1-800-959-8281. If you are elsewhere, you can call 613-940-8495. This page has more ways to contact the CRA: Contact the Canada Revenue Agency