As part of the divorce process, to draw a line under the finances you will need a financial order.
The courts will not get involved in marital finances unless divorce or legal separation proceedings have started.
Remember that the divorce itself is not that expensive, if you use solicitors, it is arguing over money and children which costs the big bucks.
And here is some reading on applying for a financial order.
Which draws a line under the finances of the marriage and prevents either of you coming back to the other, in some years time, asking for more money if circumstances have changed (the lottery?).
That’s what happened here when the spouse popped out of the woodwork years after the divorce, when there was no financial order.
You can agree what you like between you, then it really is a case of putting the application into the court and the judge will rubberstamp the arrangements you have agreed. Otherwise it’s a potentially expensive argument.
Here are some notes from the government
On applying for a financial order
This is the form you need to start the process: https://assets.publishing.service.gov.uk/government/uploads/system/uploads/attachment_data/file/885814/form-a-eng.pdf
And how you go on from there depends on whether you agree with what is happening with the finance or whether you are going to have an argument.
Thank you for letting me assist you with your legal question. I am glad that I was able to help.
I am not certain whether that answers the question for you or not, but I am happy to answer any specific points arising from this.
It will be my pleasure to help you again either further with this or any future questions you have