if multiple products of same extent and pixel size are loaded in SNAP, they can be jointly used in the band maths. The $5 indicates that you are working on product #5 (you probably know that).
I remember that this caused problems in my band maths as well. Maybe the expression works if you remove all other products from SNAP so that only the used one remains.