It’s up to the CAA whether a licence is valid or not. They issue the licenses. EASA can choose not to recognize it as an EASA licence, but last I checked the UK is still a member of the ICAO. Not that it matters, you don’t have to be in the EU to be in EASA.