https://magecomp.com/blog/?p=20946
How to get Module Version Programmatically in Magento 2