Bazelize: Fix regex for libs versioned by basename
Currently, the regex for detecting libs in bazelize is flawed in that it does not include libraries where the basename contains the version. Examples include:
- libgstreamer-1.0.so.0
- libpython3.11.so.1.0
To rectify: allow for a regex search anywhere along the suffixes parsed, and tighten up the regex accordingly. Also, add additional negative test cases, particularly if the regex needs further modification.
For consistency, the header regex is also changed to search in the same manner.