This regex is to describe the password which has at least 7 characters (OC) with at least a special one (SC). Of course, we know the SC may be in the first, second .... or last of the password. Also, we know the password maybe bigger than just 8. so I wrote the RE to accept any character (AC) from ! to ~ which Contains all characters in the end with * {0, }. but the problem in the beginning before writing 8 characters.
special characters are : https://tools.oratory.com/altcodes.html ! "
?
@
[
]
^
_
`
{
|
}
~