Red wire from voltage regulator

New here! Just purchased a 2000 Sportsman 335 that needs a little bit of work. Has a brand new battery that was reading 11v when at idle. Turned out the stator was done and 2 of the yellow wires had melted against the exhausts. Put a new stator in and all 3 yellow wires have the right voltage now, but the battery still isn’t charging. I noticed the red wire from the regulator was not hooked to anything and looked capped off. From looking at diagrams it appears it’s the only link to the battery from the regulator. What exactly is the connection point for the red wire?