If have ulcerate colitis, should I use cyclosporine or inflekcimab or do surgery?

Surgery last resort. Optimal management of uc requires a good coop effort among your primary doctor, gastroenterologist and surgeon. Both immuno suppressant and biological as you mentioned have their roles in dz management. Though surgery can cure uc, it is usually the last option as it has it's own complication and will change your life forever.
Surgery. Ulcerative colitis is limited to the colon and rectum, and therefore is very responsive to surgical treatments, which are especially useful in younger patients and safer in the long term than toxic medications. You should be evaluated by a surgeon with experience in this area.