From the Drupal 8 administration, I configured a block (block created from a custom module) for display it in /user/* pages.
It works; I see this block in /user/* and /user/*/edit pages. Now, I want to display my block only from /user/* pages (the view mode), not from /user/*/edit pages (the edit mode).
Can I do that from the Drupal Administration page? I tested it adding "!/user/*/edit" but this has no effect.
If I can't, how can I do that from my custom module?