Lookarounds help to create custom anchors and add conditions within a regex definition. These assertions are also known as zero-width patterns because they add restrictions similar to anchors and are not part of the matched portions.
See also my "Understanding Python re(gex)?" ebook: https://github.com/learnbyexample/py_...