Steps to reproduce:
Create a pattern in your base theme.
Copy the previously created pattern to your sub theme (default theme).
ui patterns library detects the pattern defined in your base theme instead of the one in the default theme.
I think a pattern defined in the default theme (having same id as a pattern in the base theme) should be the one detected. As it overrides the pattern in the base theme!