The lawsuit also named former Twitter CEO Jack Dorsey, current CEO Parag Agrawal, and the company's board as defendants.