"When running" indicates the alternator and/or regulator are involved in the flickering, and I'd lean towards the regulator.
Should be easy to check with a multi-meter.
Good time to check, clean & tighten ground connections, bulkhead connectors, and power cables.