code: def _get_formated_symbol(self, symbol):
          
          # pylint: disable=no-self-use
  
          old_symbols = [
              '\\',
              '.',
              '+',
              '*',
              '?',
              '^',
              '$',
              '[',
              ']',
              '{',
              '}',
              '(',
              ')',
              '|',
              '/',
              ',',
              '!',
              '=',
              ':',
              '-'
          ]
          replace_dict = {
              '\\': '\\\\',
              '.': r'\.',
              '+': r'\+',
              '*': r'\*',
              '?': r'\?',
              '^': r'\^',
              '$': r'\$',
              '[': r'\[',
              ']': r'\]',
              '{': r'\{',
              '}': r'\}',
              '(': r'\(',
              ')': r'\)',
              '|': r'\|',
              '/': r'\/',
              ',': r'\,',
              '!': r'\!',
              '=': r'\=',
              ':': r'\:',
              '-': r'\-'
          }
          for old in old_symbols:
              symbol = symbol.replace(old, replace_dict[old])
          return symbol
docs: Returns the symbol formated to be searched by regular expression.
  
          :param symbol: The symbol.
          :type symbol: str
          :return: The symbol formated.
          :rtype: str