Unable to push: token authentication

I cannot push my source to github. Below is notification I received:

remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see Token authentication requirements for Git operations | The GitHub Blog for more information.

I have followed the link above to create my personal access token and tried some other ways (e.g. resetting global config with my username and password). But push function still does not work.