modify regex to capture non-integer foreign keys