NoEffects removes potion effects from the game by hooking onto events. It will remove any effects from any entity upon being loaded into the world and the potion effect add event is immediately cancelled.
The source can be found here at github.com/m-doescode/NoEffects
The mod is also hosted on modrinth at modrinth.com/mod/noeffects
Please report any bugs in the issues tab of the repository.