The L7805 regulator's 5V output voltage cannot be trusted as a reference for the comparator, because its typical dropout voltage is 2V, and worst case, its output can start drooping a bit above that, far too close to the desired 7.5V input threshold. You therefore require a voltage reference for the comparator. The PIC18F25K22 MCU has an internal voltage reference (the FVR, datasheet section 21.0) that can output to a pin, nominally 1.024V, 2.048V or 4.096V depending on its PGA setting, but it isn't very accurate. The lowest cost solution would probably be a potential divider from the unregulated supply feeding one of the PIC's analog input pins, and a routine in the firmware to check it, with calibration of the FVR and divider at 7.5V unreg in to set the threshold.
However you probably need a standalone solution, that is independent of the PIC. My preference would be to use a TLV431, as combined comparator and reference, turning on the green LED when Vin is over 7.5V (sensed by a potential divider to its REF pin), and a N-MOSFET with a Vgs min. threshold >1.2V gate connected to the TLV431 output (cathode pin), inverting it to drive the red LED.