Please I need help:
I think this may help:
Start with a letter, then a dot, any combination of letters and underscore, and finish with a letter.
Instead checking if there is no underscore at the end, you know that always will be a letter. Its simplier to read.
You can see the regex test (with fixed issues you find) here: Regex101.com - Test