Can't we just check if we received a data.sessionId, I don't get why we would want to check the format of sessionId.

That's selenium's responsability.