Python Aruco unresolved

Hi, I have python 3.8.8 on my windows computer and also installed opencv-contrib-python(opencv version: 4.5.2) . I can use cv2 and most of its functions within Visual Studio IDE.
However, when I want to import cv2.aruco, It gives me “unresolved”" error. When I use aruco methods, The compiler neither complains nor does it give any exception. But simply it does not evaluate any marker corners. I know the library contains the aruco items. Anybody has an idea why I am having this problem?