Netlify.toml ignore doesn't work in context

I made this change to my netlify.toml file and the ignore doesn’t seem to be working anymore.

My expectation is that with commits to master if the only change is in the functions folder then it will not trigger rebuilding but this is not the case in practice.

It was working before when the ignore clause was under [build].