how to execute two process in user_data?

Solution
#!/bin/bash

. /home/ec2-user/flask/venv/bin/activate
python /home/ec2-user/flask/hello.py &

cd /home/ec2-user/prometheus/prometheus-2.39.1.linux-amd64/
sudo ./prometheus