Capital gain on the sale of the house will be between $250,000 and $500,000. If we file separately in 2020, can we qualify for the full $500,000 capital gain exclusion?

We are going through a divorce in a community property state.  Our decree is being crafted to say that we will "file separate state and federal taxes for the tax year 2020 with no theory of community property. Can we split the capital gain and take that separately?