fix regex that removes curly braces in dex