Observational constraints of $f(Q)$ gravity