SELECT 
  product_id, 
  group_id 
FROM 
  cscart_product_variation_group_products 
WHERE 
  group_id IN (165, 164, 163, 162, 158, 152)

Query time 0.00051

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "13.66"
    },
    "table": {
      "table_name": "cscart_product_variation_group_products",
      "access_type": "range",
      "possible_keys": [
        "idx_group_id"
      ],
      "key": "idx_group_id",
      "used_key_parts": [
        "group_id"
      ],
      "key_length": "3",
      "rows_examined_per_scan": 27,
      "rows_produced_per_join": 27,
      "filtered": "100.00",
      "index_condition": "(`wearethehelpful_scalesta_net`.`cscart_product_variation_group_products`.`group_id` in (165,164,163,162,158,152))",
      "cost_info": {
        "read_cost": "10.96",
        "eval_cost": "2.70",
        "prefix_cost": "13.66",
        "data_read_per_join": "432"
      },
      "used_columns": [
        "product_id",
        "group_id"
      ]
    }
  }
}

Result

product_id group_id
2068 152
2091 158
2092 158
2108 162
2107 162
2106 162
2105 162
2111 163
2109 163
2112 163
2110 163
2116 164
2115 164
2114 164
2117 164
2122 165
2125 165
2124 165
2123 165
2120 165
2121 165