But even without that, judges have huge amounts of leeway to “create” an ex post facto contract and say “heres the version if that contract you would have agreed to, this is now the contract you signed”. A sort of “fixed” version of the contract.
Severability clauses themselves are not necessarily valid; whether provisions can be severed and how without voiding the contract is itself a legal question that depends on the specific terms and circumstances.