Given an object with string keys possibly containing *, and a test string, return the matching key, and the section that the star should expand to when matching against the test string.
Given an object with string keys possibly containing *, and a test string, return the matching key, and the section that the star should expand to when matching against the test string.