Black staining around vents is most often soot from candles, a fireplace or cooking, deposited where air moves fastest. It can also be "ghosting", fine particulate settling on cooler surfaces. Occasionally it signals a combustion problem, which is the one case that needs immediate attention.
Scented and paraffin candles produce fine black particulate. Air movement carries it to the register, where it deposits in a pattern that traces the airflow, usually a fan or streak spreading out from the vent edges. Jar candles with long wicks are the biggest producers. If the staining appeared over a winter of heavy candle use, this is almost certainly it.
Ghosting is fine soot and dust settling along cooler surfaces, you'll often see it tracing the framing behind drywall or in straight lines along the ceiling. It indicates particulate in the air plus a temperature differential, and it's a building and air-quality signal rather than an HVAC fault.
This is the case that matters. Soot from a gas furnace, water heater or fireplace can indicate incomplete combustion, which produces carbon monoxide. If you have gas appliances and you're seeing new soot, especially with any headache, nausea or drowsiness in the household, treat it as urgent, get out, confirm your CO detectors work, and have the appliances inspected by a qualified technician before anything else.
Soot is dry, black, smears when wiped, and follows airflow patterns radiating from the register. Mold is patchy rather than directional, often has texture, stains rather than smears, and comes with a musty odor and a moisture source. If there's no plausible water anywhere near, it isn't mold.
It removes the deposits, but not the source. Identify what’s producing the soot, candles, fireplace, or a combustion issue, or it returns.
It’s fine particulate, so heavy ongoing exposure isn’t ideal. Trimming wicks and better ventilation reduce it substantially.