You might be eligible to apply for UK resettlement depending on the risk assessment. This is currently limited to those in "high-risk" roles. The UK has announced a new scheme for resettling some of those who are not covered in the original scheme but the details of how to apply and when this will open are not clear yet.
What to do
Fill in the online form linked from here: https://www.gov.uk/government/publications/afghan-relocations-and-assistance-policy/afghan-relocations-and-assistance-policy-information-and-guidance
Email email@example.com or on call 0792 907 303 for further advice if needed.