Print with the magnets holes facing up.
Inspired from Lautie's AA Suffle fidget toy.
Edit (16/08/22): Added a heart version for the bottom part.
The author hasn't provided the model origin yet.