Revert "Update flag regex"

This reverts commit a45f7b0bacda226b94a2830e5fb6e8c0e7ea6e53.