Indeed! I can reproduce this, thanks. Fortunately an easy fix:
https://github.com/discourse/discourse/pull/41174