Thick and opaque are related but not identical: dye can make fabric less transparent without making it sufficiently robust as a legally valid covering.
Thus the label “sock” does not decide the rule. Actual material, thickness, coverage and durability matter when applying the juristic criteria to modern footwear.