Create a function that checks if the sub-lists in a list adhere to the specified pattern.
check_pattern([[1, 1], [2, 2], [1, 1], [2, 2]], "ABAB") ➞ True
check_pattern([[1, 2], [1, 3], [1, 4], [1, 2]], "ABCA") ➞ True
check_pattern([[1, 2, 3], [1, 2, 3], [3, 2, 1], [3, 2, 1]], "AABB") ➞ True
check_pattern([[8, 8, 8, 8], [7, 7, 7, 7], [6, 6, 6, 6], [5, 5, 5, 5]], "ABCD") ➞ True
check_pattern([[8, 8, 8, 8], [7, 7, 7, 7], [6, 6, 6, 6], [5, 5, 5, 5]], "DCBA") ➞ True