There's a post on bug-bash talking about this issue: https://lists.gnu.org/archive/html/bug-bash/2024-08/msg00087.html. It's probably better to consider whatever patch upstream comes up with rather than what arch linux did.
- Bug#1078556: bash: 5.2.21-2.1 to 5.2.21-2.1+b1 breaks pri... Xavier G.
- Bug#1078556: bash: 5.2.21-2.1 to 5.2.21-2.1+b1 break... Alexey Kuznetsov
- Bug#1078556: bash: 5.2.21-2.1 to 5.2.21-2.1+b1 break... Konomi