extractInternalErrorCode
Extracts the internal error code from an Error object's string representation. Uses regex to find the "code": followed by digits pattern.
Return
The extracted error code as string, or empty string if not found or on error
Parameters
errorString
The string representation of an Error object