First mention of using driverless vehicles as weapons I recall was Daemon by Daniel Suarez.
I forgot if any of the IRobot short stories used the concept - if they do they would predate the movie.
First mention of self driving cars becoming sentient and turning on humans I’m aware of, from 1953!
Might feel a little too close to home to re-read.
I'll never forget the gig worker assembly scene.