Remarks on Tao's algebraic regularity lemma