Near-term quantum algorithms for linear systems of equations with regression loss functions