Searches for a value by scope, checking exact matches first, then prefix matches.
The matching value or null if not found.
The scope string to search for.