Text this: Are Formal and Functional Linguistic Mechanisms Dissociated in Language Models?