This is incorrect. Many states have laws specifically encouraging ID scanning: https://idscan.net/us-id-scanning-laws/