1 day after posting this, an AMD OpenMP developer made a PR to fix this:
https://github.com/llvm/llvm-project/pull/237914
It was merged 3 days later.
Thank you, https://robert-imschweiler.com!