Have you considered resetting the port completely, removing any port security settings, and then applying the MAC allow list from scratch?
Also, double-check the MAC address to make sure there are no extra spaces or formatting issues that might be causing the switch to misrecognize it.
If you found this post helpful, please give it Kudos. If my answer solves your problem please click Accept as Solution so others can benefit from it.