There has been a lot of discussion about dispelling undead creatures, but according to the Sage Advice Compendium, dispel magic does not work this way:
Can you use dispel magic on the creations of a spell like animate dead or affect those creations with antimagic field?
Whenever you wonder whether a spell’s effects can be dispelled or suspended, you need to answer one question: is the spell’s duration instantaneous? If the answer is yes, there is nothing to dispel or suspend.
At the same time, the animate dead spell description says:
The creature is under your control for 24 hours, after which it stops obeying any Command you've given it. To maintain the control of the creature for another 24 hours, you must cast this spell on the creature again before the current 24-hour period ends.
Although the undead creature has been raised, the caster obviously has temporary control over it. Some monsters from MM have an ability to dispel magic, which could come in handy for the DM when the party has a necromancer.
Please note: I'm aware of the discussion around whether dispel magic could 'unanimate' an animated corpse. It's clear to me that it couldn't according to RAW. That seems to be what's covered in this related question.
However, I'm asking a different, distinct question. An animator's control of undead is temporary (24 hours).
Could dispel magic simply remove the caster's control of the undead, leaving the undead still animated but now outside of the spellcaster's control?