CERN is not an EU project, predates the EU, and is not located in the EU. EuroHPC JU includes a number of non-EU members.
I think that is the way forward: work with whoever has common interests and is willing to work together.
I think the point is that the EU does not necessarily make cooperation between governments any easier.
It is partly located in the EU and primarily funded by European countries