From what I can tell from my research into it, the only thing preventing working remotely from another country is how willing your employer is to do it, not UK tax/employment law. You can tell HMRC you're tax resident elsewhere and they'll amend tax code accordingly. The main problem is that then you are subject to the personal tax law of the country you are resident in, which can be more or less generous depending where you go.
I've not worked from the office since Covid struck. Departmental productivity is down, some people can work from home and keep focus, some either skive simply can't do it from what I see.