What is the macOS Big Sur version are you using?
I saw this bug in previous version of macOS Big Sur (11.2 or earlier), but disappeared mystery in recent versions (at least I could reproduce it in 11.4).
I am using 11.4
This problem has been fixed in Core Shell 3 Beta.
Please join Core Apps Beta Program before you browse the topic.