jq ' map(select(.key | contains("label"))) '

cat data/ann.json | jq '.metadata.annotations | to_entries ' cat data/ann.json | jq '.metadata.annotations | to_entries | map(select(.key | contains("label"))) '
[
  {
    "key": "deployment.kubernetes.io/revision",
    "value": "1"
  },
  {
    "key": "machine.openshift.io/owned",
    "value": ""
  },
  {
    "key": "label1",
    "value": "stam"
  },
  {
    "key": "label2",
    "value": "another"
  },
  {
    "key": "label3",
    "value": "one"
  }
]
    
[
  {
    "key": "label1",
    "value": "stam"
  },
  {
    "key": "label2",
    "value": "another"
  },
  {
    "key": "label3",
    "value": "one"
  }
]