Congruences for ℓ-regular partition functions modulo 3