Security regex fix