It depends.
CRA has its own definition for changes in marital status. If you fit the criteria, you can file as separated for tax purposes.
Learn more here: https://www.canada.ca/en/revenue-agency/services/tax/individuals/topics/about-your-tax-return/tax-re...