Using masks with texture sampler?

Hi, I’m making a distance blend material function, but apparently I can’t use a mask texture with it, only color textures. How can I make it work?

trying to isolate the issue:

this will only work if I open the texture and check “sRGB”, and that’s not what I want since this is a mask