or underscores
      )\.)*      # followed by an optional chain of zero-argument method calls
        (?<dynamic>(?x-mi:
        [[:alpha:]_] # at least one uppercase letter, lowercase letter or underscore
        [[:word:]]*  # followed by optional letters, numbers or underscores
      )) # and a final valid identifier, captured as DYNAMIC
      