The Borg were created by Maurice Hurley. Also instrumental in creating Q.
Q was there from day one so Hurley had been on script since 1966. He only died in 2015. He lived 76 years.
I suspect he was inspired by Fred Saberhagen’s Berserkers.