AI regulation gets a bad rap—but lawmakers around the world are doing a decent job so far