You likely need to change the pack format number in the pack.mcmeta file. For 1.17 this is 7. This resolved the same issue for my resourcepack.
You likely need to change the pack format number in the pack.mcmeta file. For 1.17 this is 7. This resolved the same issue for my resourcepack.