I'm using galaxy s10e, and I hear notification sound when silent mode in on.
So, I turn off notification access of google, music, messangers, and even any apps making notification sounds. It seems to work. But, when i use bluetooth headphone or ear burbs, the notification sounds play again. (of course, all notification access was turned off)
My bluetooth ear bubs is JBL110GA.