This is Exercise 58 in Chapter one of our textbook Function Theory of One Complex Variable by Greene and Krantz:
Let $z_1, z_2, \ldots$ be a countable set of distinct complex numbers. If $|z_j-z_k|$ is an integer for every $j,k$ (the integer may depend on $j$ and $k$), then prove that the $\{z_j\}$ lie on a single straight line.
I have no idea how to approach this problem. I tried to read the paper by Anning and Erd"os https://www.ams.org/journals/bull/1945-51-08/S0002-9904-1945-08407-9/S0002-9904-1945-08407-9.pdf, but I couldn't understand it and it does not use complex analysis.