An article on the United Recovery Project website explains that information about treatment at a rehabilitation center is strictly confidential and protected by privacy laws, including HIPAA in the United States. Medical records cannot be disclosed without the patient’s consent. For details, see
https://unitedrecoveryproject.com/rehab-blog/does-going-to-rehab-go-on-your-record/ . While this may change in cases of court decisions, in most cases, the fact of undergoing rehabilitation does not enter criminal or public records and does not affect your reputation. This is very important to know so that you do not fear seeking help.