Don't allow uuids with orphan curly braces
#29715

pdebelak wants to merge reverbdotcom:ptd/fix-invalid-uuids into rails:master

We do not currently have an analysis of these two commits