A prominent tech executive is expressing newfound skepticism about the future of AI, following years of promoting it as the next big thing, amid significant financial losses.