It’s pretty much always worth running out your contract if you’re in the last year. You can then negotiate to pocket a load of the money that would have otherwise been spent on a fee. See Mbappe.
Obviously comes with the not insignificant risk of injury but that’s the decision to be made.