Ultrafast dynamics in square-net nodal-line semimetals