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

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

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

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