input_uni = request.form.get("search")
uni = db.execute("SELECT * FROM unis WHERE name LIKE :name OR country LIKE :country", name=input_uni, country=input_uni)
yes .. the use of function don't allow the use of index .. ....but also the use of wildchar in like produce bad performance .. so for like operator the use of caoncat is not so bad
name=f"%{inpunt_uni}%"do what you want?