[samba] Fix ) in names not being parsed

Adding an extra terminating character to the regular expression solves
the premature stop on the parsing