Compare stringified course_ids to regexes for courses allowed to execute unsafe code