Your filing status (single, married....) is determined as of December 31 of the tax year. So if you were divorced before the end of 2023, then you file Single for 2023. (Or...if you are the custodial parent of the children, maybe head of household....do you need more information about that?)