Waalaikumsalam. Under Saudi employment law, a worker can only work for their employer (kafeel). If you work for someone else while still being under your original employer's sponsorship, this is a violation of Saudi law. Similarly, leaving your employer without their permission and not working for a lengthy period, often referred to as 'going habs' (absent) is also a violation of Saudi labor law.
The Saudi government has started cracking down on these practices and SaKaN (the Saudi responsible for expatriate affairs) repatriated you to Indonesia. However, they would have also most likely placed you on their labor law blacklist for violation.
According to the Saudi Arabian Labor Law, Article 61, leaving an employer or not reporting to work without valid reasons will be seen as halting work by an employee and you could be terminated with immediate effect.
Moreover, as mentioned in Article 26 of the Foreign Labor Regulation, you might face trouble in regard to your remarks about working in the future. It may prohibit any employer from employing you in Saudi Arabia for a maximum of 5 years, if you have violated the work regulations.
To answer your question, according to the current regulations and laws, it might be challenging for you to return to work in Saudi Arabia for the stated duration due to your 'habs' status and likely presence on the Kingdom's labor law blacklist. It is recommended to stay in touch with Saudi embassy to get more clarifications regarding your situation and the possibility of returning to work in the Kingdom.