Using worker for safe regex processing