Charging threshold is for select systems - your firmware would have to provide support for it.
Lenovo is one of the few systems supporting this - I think there is a package in the repo - I just don’t recall it’s name - it is for thinkpad specifically.
https://wiki.archlinux.org/title/Laptop/Lenovo mention a package tpacpi-bat and for older TP’s tp_smapi and a list of Lenovo systems - tested and working https://github.com/teleshoes/tpacpi-bat/wiki/Supported-Hardware
Most system doesn’t support such threshold and your only helper is a script which can watch your battery and notify when your desirec threshold is reached.
If you cannot get it to function - I create an allround script some time ago.
Save the script in /usr/local/bin/charge-notify.sh (require elevated permission)
The easiest way of running the watch is to use a systemd service
Create the folder ~/.config/systemd/user
mkdir -p ~/.config/systemd/user
Create a service unit using your favorite editor
xdg-open ~/.config/systemd/user/charge-notify.service
Paste below content and save the file
[Unit]
Description=Charger notify service
[Service]
Type=simple
ExecStartPre=/bin/sleep 30
ExecStart=/home/%u/.local/bin/charge-notify.sh
[Install]
WantedBy=default.target
Enable and start the service
systemctl --user enable --now charge-notify.service