would exclude this, but you need to combine this with an anchor otherwise you will get a parital match.

/(?<!\B|\.)(\d+)(?!\.\d+)\b/

You should also change the non-word character before the digits. I used here a negative lookbehind assertion (?<!\B|\.). it ensures that there is no dot before the digit or not a non word boundary (double negation to match on a word boundary.)