The company will use AI-based molecule discovery, a common tool in pharmaceutical drug development, to target cosmetics pain points like hair loss and aging.