The creator behind Chat GPT told lawmakers the artificial intelligence technology needs to be regulated.