There are some mods available on curseforge that allow you to select which mobs get prevented from spawning, but I don't think it exists as a function in the mod.
If you're lazy to install other mods to it, you can just put slabs everywhere the mob may spawn. You'll be sure it doen't appear again.
There are some mods, like CraftTweaker, that could do what you want to do. What mob(s) do you want removed?
Any hostile mob?
What do you think?