Fixed flag regex to not be too ambitious