Contains() in formula acting funky. maybe cross-doc related?

im creating a formula and anytime the cursor goes into the parentheses of the contains() argument i lose all of the prettyformat. once im out of that area, it works. attached a video.