Hey! You can actually buy Pakistani stocks of any category using demit account. The way it works is, in every country there are some licensed brokers who works as a middle man and buy stocks on your behalf. The demit account here only means that the said party hold stocks on your behalf. Pakistani government also allows benefits for international investors. Pakistan stock exchange is around 20 mins travel distance from my location, if you wanna know more. Although I recommend visiting r/Pakistan on reddit and they will likely answer your questions related to any specific country citizen who wants to start trading in Pakistan stocks. My own account is in Dawood equities because of their high security.
Also, in 3rd semester of Software engineering, while studying my subject software construction I created a software which gives you 40 mcqs. After you fill the mcqs, it will find out your investor type based on your answers. Then you will pick the amount you wanna invest and it will create a pie chart showing what stocks you should buy and in what quantity. Although, it worked on older datasets, my investor type is moderately conservative investor.