Pair correlation function of the one-dimensional Riesz gas