Given your situation, the appropriate course of action will depend on the law applicable. In Saudi Arabia, personal status matters, criminal cases and other legal issues are governed by Islamic Sharia law. It's worth noting that, by law, penalties such as flogging and imprisonment should be executed as ordered by the court.
1. Article 36 of the Saudi Arabian Implementing Regulations of the Law of Criminal Procedure states that: "The penalty shall be executed once it becomes final and after preparing the execution method in line with the type of the penalty".
If your penalty was not executed as ordered by the court, you should first verify the final rulings of your case via the Saudi Arabian Ministry of Justice’s Najiz portal or consult with your attorney if you have one. Try to understand why there was a delay in carrying out the punishment.
2. Upon verification of your legal status, if there has been an oversight, you can engage with the responsible authorities - in this case likely the Department of Prisons and Corrections to ensure the execution of the sentence so as to close the case officially. Article 47 of the Implementing Regulations of the Law of Criminal Procedure may be relevant here: "The Department of Prisons and Correction Houses shall carry out the sentences of imprisonment...".
3. Subsequently, upon completion of the execution of your sentence, you should receive a certificate confirming you've served your punishment as per Article 112 of the Law of Criminal Procedure: "Upon the termination of the execution, an execution deed indicating that the executant has fulfilled his obligation..."
Following all these steps, the restriction on your services should ideally be lifted. This process might take time and require patience. Remember that consulting with a Saudi legal practitioner can be beneficial in navigating these procedures.