Your QRegularExpression regex("\"([^\]*)\"") is currently matching any character except .
Change to QRegularExpression regex("\"([^\"]*)\"");