Bug was added in version 19
mathguy, September 26, 2025 - 1:46 pm UTC
For what it's worth, the code works as expected, not only in version 23, but also on 12.2.0.1. The bug was added in version 19 and then fixed by version 23; I don't have a copy of v. 21 to test.
September 26, 2025 - 2:37 pm UTC
Thanks for investigating.