The ECJ is the court of last resort within the EU and for matters of EU law - which won't apply in the UK after the the end of the transition period. In the same way, when assorted British colonies became independent, they were no longer under the jurisdiction of UK courts or UK law. The UK is a member of the UN and the WTO but is no longer a member of the EU.