REGEX-Escape for: users[@.id=='abc']

Your Input:
Result, the escaped string:
users\[@\.id\=\='abc'\]

What must the escaping look like for:
users[@.id=='abc']

The excaped text for use in a regex is:
users\[@\.id\=\='abc'\]