Thank you for reporting this issue. It was fixed with this PR
https://github.com/discourse/discourse/pull/34664