Try this hack before using a self-serve soda machine to avoid grossness.
TAKE A NAPKIN AND WIPE THE INSIDE OF THE CLEAR SODA NOZZLE (usually Sprite or 7-up)
If it comes back brown, they probably swap it with another drink, but it means they don’t clean it right… but if the napkin turns pink or orange, it’s slime mold.