I have a proposed fix for it in the patch below. I don't know where I got "ungif" from, since it's not standard, but anyway it made me find the bug =)
Created attachment 11321 [details, diff] Fixes the regular expressions to require a space in front AND ensure a space in front of the first flag
What version of ufed are you using? If using 0.2 try 0.3.
Thanks for the fix it will be incorporated in 0.32
sorry I forgot.. I was using 0.3.
Is fixed and 0.32 is in portage