Widow Filing Jointly

My husband died on 29 July 2022.  I filed my 2022 taxes jointly.  How many years after his passing can I continue to file jointly?  I think at the time I filed I was told I could continue for 3 years but I've since heard that's changed...has it?  And if it has changed what's the new rule about joint filing for widows?