Sliding neo magnets to separate is an easy option, separating on from each other by direct force on axis with your hands is literally impossible
Grind a chamfer around the magnet faces......rectangular. round, square .....doesn't matter
Select a nitrile O-Ring to the appropriate size...if the magnet is rectangular, form the O-Ring into an ellipse & tack with superglue....randomly drill half a dozen holes into the parent material......one drop of superglue to hold the magnet stable
Gently flood the cavity created by the O-Ring with a thinned epoxy resin until just below the height of the magnet .....the epoxy will also flood into the holes in the parent material keying the epoxy and the magnet
Post curing, you can remove O-Ring if desired
__________________________________________
In a past life
as a contingency, I used such an arrangement on a Guided Missile Launcher on a Commissioned Australian
Frigate