There are countless stories of Sages in every age doing such things including in the current day. It is not the common practice and is prohibited for almost everyone to indulge in such activity for a variety of reasons.

One textual example that comes to mind of this type of teaching is [Sefer Ta'alumot Chochmah by Rabbi Chaim Vital][1] which actually categorizes according those methods tried and tested and those only heard of, as well as their efficacy.

There is also the famous amulet of [Rabbi Mordechai Sharabi, zt"l][2] which was used by Rav Kaduri, zt"l and Rabbi Mordechai Eliyahu, zt"l. This link actually connects to a photo of [one of the notebooks from Rav Kaduri, zt"l about writing amulets][3] that was placed up for auction in 2018.


  [1]: https://seforimcenter.com/showScannedImages.aspx?pfile=11565.gif
  [2]: https://en.wikipedia.org/wiki/Mordechai_Sharabi
  [3]: https://www.virtualjudaica.com/Listing/Details/1249369/Amulets-by-R-Yitzhak-Kaduri-Kadouri-Jerusalem-20th-century