Does the UK eSIM work in Scotland, Wales and Northern Ireland?

Yes. It covers the whole United Kingdom, plus Jersey, Guernsey and the Isle of Man. Coverage can vary in rural areas.