~ operator in API calls

You too, huh?

See this topic. In short - it’s by (bad!) design, and MikroTik stubbornly refuse to implement it for (silly) reasons.