Need help with custom mouse buttons

My esc key on my laptop is broken, and I have a gaming mouse with two extra buttons.
on the manufacturer site, they only cater drivers for windows.

I need help with configuring my gaming mouse, and have the extra keys do other stuff.
i want to program the one mouse key to function as my esc key, because it is broken, so it must be global an in all apps.

I don’t know how to do this in kde or in bash?

I am using KDE Neon 5.27
my gaming mouse is this one:

I am sure there must be a way? any help would be appreciated, thank you.