Instead of using the $where operator (https://github.com/AxisCommunications/goalie-url-shortener/blob/master/backend/service/service.py#L87) for the reverse regex operations which comes with security concerns we should move to using the $regexFind as soon as it is released (scheduled for MongoDB v.4.2).
Check status: https://jira.mongodb.org/browse/SERVER-11947