Complex dynamics of knotted filaments in shear flow