May affect older versions as well, have not tested
Running attribute @e[type=skeleton] generic.follow_range modifier add 78976fba-c3a7-4a53-9f16-1e84184b35e3 blindness -7 add
works as expected, but the catch is that the affected skeletons will flicker between holding up their bow and lowering it when their target is between 16 and 9 blocks of them.
Related issues
duplicates
Comments

Thank you for your report!
We're tracking this issue in MC-87093, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! Please report any issues on Discord or Reddit