The game loads standard mods from both of these locations. As such, the game should load coremods from these locations too.
Use Fabric instead of Forge Develop a version that supports Minecraft 1.12.2. Separate our mod from Mod Loaders and make it be an independent mod. You can download it from thislink. Then put it into themodsfolder.(needs to install Forge) ...