You Shall Not Spawn! (Modpack Utils Series) lets you disable unwanted mob spawning through JSON configuration. It supports Forge, Fabric, Quilt and NeoForge across Minecraft 1.17 - 1.21.3.
Add an entity ID to disabled_entities.json5 and it is removed completely, even from spawn eggs and commands. A second file controls spawn rates globally or per dimension, and regex entries can disable every mob from one mod at once. The config files are commented with examples.
Admins tired of problem mobs can add it to their Minecraft server with a single click in the panel.