That stops the code getting executed, it doesn't stop the classloader from loading the code where forge will check the classes referenced are for the correct side.
By using a separate class for the client code you will avoid that class getting loaded until it is executed (which is never on the server).
.
You don't need to write your write your own biome modifier for this.
https://github.com/MinecraftForge/MinecraftForge/blob/b0caea8e204a7f026646396558d6d58a02bff9d6/src/main/java/net/minecraftforge/common/world/ForgeBiomeModifiers.java#L31
You put your "entries" in different files. Example from the testsuite:
https://github.com/MinecraftForge/MinecraftForge/blob/1.19.x/src/generated_test/resources/data/biome_modifiers_test/forge/biome_modifier/add_basalt.json
If you want to get yours to work with that json format, then you will need to change your codec and BiomeModifier implementation so it knows what you mean by "entries"s.
The version you are using is no longer supported on this forum.
Please update to a modern version of Minecraft to receive support.
Currently supported versions are 1.19.2 (Latest) and 1.18.2 (LTS).