Bash 5.1 seems to have introduced stricter quoting/word expansion rules. At least in the cases I checked, it seems valid and the original use was wrong. In any case, it's stricter now.