The law changed to make a deceptive statement about what can and can't be discharged in bankruptcy illegal, but it was always false to say that it couldn't be discharged in bankruptcy, even before the law changed.
This isn't a new California department, it's the old DBO under a new name as the DFPI, with enhanced powers to regulate financial matters that were previously unregulated and protect Californians against unfair, deceptive, and abusive practices. Basically there have been lots of innovative financial agreements that weren't well regulated under California law. They also weren't well regulated federally, but that's a whole other issue.
More info on the law here.
https://dfpi.ca.gov/california-consumer-financial-protection...