Uses REGEX to identify uuids instead of exceptions

Fixes [OOIION-1096](https://jira.oceanobservatories.org/tasks/browse/OOIION-1096) Pubsub checks for resource by catching exception, needs to use regex