Planes are similar, but tend to have flashing or colored lights and obviously aren't as far away.
I'm in a big city, but close to the ocean so I have a bit less light pollution. The city is also heavy military, so that could be part of the frequency.
Update: if you're near any of the spacex launches, you can watch the rocket too. I'm house sitting in Irvine, CA and saw the Monday launch go right near the house. Amazing to watch the plume from the rocket!
And of course, if it is 3am, and there is no sunlight at any altitude because the sun is on the other side of the world, no satellites are visible.
I could be wrong.
I don’t know how you would know that. People are very bad at seeing distances at these scales.
If they were indeed satelites they could be starlink satelites. They are put into orbit as a bunch together and then they spread along their orbital path as they take up their position.
This article has a picture, maybe you can check if it is similar to what you have seen? https://earthsky.org/space/spacex-starlink-satellites-explai...
If you could recall more details then maybe we can figure out more exactly what this might have been. (Such as where you were, which direction you were looking at, when did this happen, how fast did they cross the sky and how far the dots were from each other. Were the line spread in the direction they were moving or sideways?)
I don’t remember the details anymore, but it was one of the coolest practical experiments we did.