Divorce

I am in the process of a divorce and it should be final around Dec 15th.  Are we able to file joint for the 2022 year??  Would there be a benefit to filing seperate?