Exact quench dynamics of symmetry resolved entanglement in a free fermion chain