Basically, any viable synthesis route for these compounds requires either cocaine itself or parts of the molecule (ex.: ecgonine) which are themselves scheduled in many jurisdictions.
Partial transesterification happens in the body because you've got extremely efficient catalysts called "enzymes"... outside of the body, you've got the problem that cocaine contains two ester groups, so attempting to do a "brute-force" a transesterification by just refluxing it in water-free ethanol and sulfuric acid might result in not just the methyl group being replaced with an ethyl, but you might also get some of the benzoyl groups cleaved off and turned into ethyl benzoate. Hence, what people try is to create mild hydrolysis conditions to only cleave off the methyl group, then convert the resulting carboxylic acid into an acyl chloride (which involves some rather unpleasant chemicals), which can finally react with ethanol to form cocaethylene.
Conversely, making 2-hydroxycocaine would require you to convert your cocaine into methylecgonine (i.e. only cleaving it at the benzoic acid ester), then treating that with salicyl chloride (which is typically made from salicylic acid using some rather nasty chlorinating agents).
Basically, making cocaine analogues is only worth it if you have a fully equipped lab (as in an actual proper chemistry lab with fume hoods and plenty of glassware, not a garage meth lab), knowledge of chemistry, and plenty of cocaine to use as a precursor. And at that point, you might as well ask yourself if you couldn't skip all the dangerous and time-consuming lab-work and expensive lab equipment and just buy even more cocaine.