I can confirm this in 1.21 with the following command:
/playsound minecraft:entity.ender_dragon.death
This has been fixed in 1.20.2-pre3. I attached two images: one demonstrating a fixed version, the other demonstrating a bugged version.
I can confirm this in 1.21 and attached an image demonstrating the bug.
[media]I can confirm this in 24w19b and attached an image demonstrating the bug.
[media]This seems to be fixed.
I attached a video demonstrating the bug.
[media]
I can confirm this in 24w14a.
I can confirm this in 24w10a.
I can confirm this in 24w10a.
I can confirm this in 24w10a.
I can confirm this in 24w09a although it doesn't happen with the GUI hidden.
This has been fixed in 22w45a. I attached two videos: one demonstrating a fixed version, the other demonstrating a bugged version.
I can confirm this in 1.20.4 and attached a video demonstrating the bug.
[media]This has been fixed in 20w30a. I attached a video demonstrating a fixed version as well as a bugged version.
I can confirm this in 1.20.4.
Added two videos: one demonstrating a fixed version (1.20.2-pre1), the other demonstrating a bugged version (23w35a).
Added video demonstrating the bug.
@Jingy I can reproduce this in 1.21. The pillagers have to shoot around the same time for it to happen.
[media]