But even people who thought they were doing something good regretted the consequences of their creations, such as Eli Whitney who hoped his invention of the cotton gin would reduce slavery in the United States, but only made it worse, or Alfred Nobel who invented dynamite (which could be used in construction or in war) and decided to create the Nobel prizes, or Albert Einstein regretting his role in convincing the US government to invent nuclear weapons, or Aza Raskin regretting his invention infinite scroll.
The dynamic between making something that can improve society and later it becoming a problem seems to be a pattern in modern society. For instance, automated AI replacing jobs and entire websites, or online shopping surging in the pandemic shutting down small and local businesses.