Each parish decides which church it belong to.
https://www.pbs.org/newshour/show/russias-war-in-ukraine-leads-to-historic-split-in-the-orthodox-church
Well, it should be very telling that the Ukrainian president based his re-election on this, and lost worse than 3-to-1.