Inferring Dynamical Systems with Long-Range Dependencies through Line Attractor Regularization