Water-based sun gels are the hardest common format to preserve. High water activity, a neutral-to-slightly-acidic pH, and often a high load of humectants and electrolytes create a friendly environment for microbes.
Phenoxyethanol with ethylhexylglycerin is the workhorse pair, usually around 0.8 to 1.0 percent total. It is broad-spectrum enough for most gels, compatible with most filters, and accepted in the EU at the permitted level. Organic acids need a lower pH than a typical sunscreen can tolerate.
The test that matters is ISO 11930 or the equivalent challenge test on the finished formula, not on a model emulsion. Filters, thickeners and chelators all change the result, and a system that passes in a lab base can fail in the real one.
Packaging is part of the system. An airless pump or a tube with a small orifice reduces contamination; a wide-mouth jar with a gel invites it.