forgot to handle bracket-encapsulated UUIDs

also attempting to make the regex more understandable