The SM gauge group is based on the following symmetry:

Here, couples to the electromagnetic charge where is the weak component of isospin (third generator of )

We have 3 generations of fermions: identical gauge quantum number but different masses.