After the latest update, the TOC no longer showed up. After some debugging, I narrowed it down to the code above.
It seems that the logic is backwards here. I would think the post should be eligible if the URI matches the restricted path. However, it seems to be working the opposite of that now.
Your in-plugin description of the field also seems to indicate that a match should make it eligible:
Restrict generation of the table of contents to pages that match the required path. This path is from the root of your site and always begins with a forward slash.
Eg: /wiki/, /corporate/annual-reports/
