This should work for the described case:
System.out.println("[{\"acks\":\"6\"},{\"acks\":\"17\"},{\"acks\":\"888\"}]".replaceAll("(\\{\"acks\":\")*(\"})*", ""));
Result: [6,17,888]
I can see that there are some comments that instead of "acks" key might be any symbols, hence I would suggest to use next regexp (\{.*?:\")*(\"})*
see https://regex101.com/r/kfAYsQ/1
System.out.println("[{\"key1\":\"6\"},{\"key2\":\"17\"},{\"key3\":\"888\"}]".replaceAll("(\\{.*?:\")*(\"})*", ""));
input: [{\"key1\":\"6\"},{\"key2\":\"17\"},{\"key3\":\"888\"}]
result: [6,17,888]