Buying servers? Cloud, Shirley
With the cloud it could just be a matter of migrating data to a region that will remain within the EU. But then UK and EU27 data would have to be split between databases in two different regions.
It's then possible to imagine a crazy situation in which amalgamating query results from the two databases might be illegal, depending on where it was being done.