First of all, the "shareholder" is one of the owners of the enterprise, but he does not think that all the property of this "shareholder" should be included in the assets of the enterprise as shares. Therefore, if the patent right is the private property of the shareholders themselves, and this part of the assets is not agreed in the shareholding agreement to be invested in the enterprise as shares, then this patent right has nothing to do with the enterprise.
Secondly, if the situation you describe is that shareholders apply for a patent for the technical scheme designed by the inventor, then the right to apply for a patent in this case will be judged according to whether it belongs to a "service invention".
In a word, you have provided too little information to give you an accurate answer.