Typescript String Match Object Is Not Subscriptable Meaning