Back in 2019, the startup had teetered on the brink of bankruptcy until it received a lifeline of about $1 billion from local investors , including state-backed entities.