Need to fetch issues from commit messages

I need to fetch issues from commit messages as that’s the only way i can get the issue for a commit SHA. Now, there are several ways to link an issue to a commit: https://docs.github.com/en/github/writing-on-github/autolinked-references-and-urls#issues-and-pull-requests

What I was wondering is if we have a regex that covers all the scenario and get me the list of repo name->issue numbers. Can someone help me with a regex for the same?