I am sorry for your Loss!! If your wife passed during 2021 you can still file Joint.
If your spouse was still alive as of December 31, 2021, you should file your 2021 return jointly with your late spouse.
If your spouse died in 2021, you should also file jointly with your late spouse unless you remarried in 2021. In that case, you'd file a joint return with your new spouse and file your deceased spouse's return as Married Filing Separately.
Now the states may each treat the filing status differently.