[SQUASH] Refine pattern matching
Use a binary() for annotations keys, and do not remap it
Removed special parsing for perf_stats
Expanded test cases to cover annotations
generate_msg should work even with invalid annotation key