JSFiddle - React, Tailwind, and code Playground

HTML

<div></div>

CSS

body {
  background: #fff;
}

div {
  background: #fff;
  outline: 2px solid pink;
  width: 80%;
  margin: 0 auto;
  height: 100px;
  position: relative;
  z-index: 1;
  
}

div:before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  position: absolute;
  top: 50%;
  left: -19px;
  width: 30px;
  height: 30px;
  background: #fff;
  transform: translateY(-50%) rotate(45deg);
  border-radius: 50%;
  border-top: 2px solid pink;
  border-right: 2px solid pink;
  border-bottom: 2px solid white;
  border-left: 2px solid white;
  z-index: 2;
}

div:after {
  content: '';
  display: inline-block;
  vertical-align: middle;
  position: absolute;
  top: 50%;
  right: -19px;
  width: 30px;
  height: 30px;
  background: #fff;
  transform: translateY(-50%) rotate(45deg);
  border-radius: 50%;
  border-bottom: 2px solid pink;
  border-left: 2px solid pink;
border-top: 2px solid white;
border-right: 2px solid white;
  z-index: 2;
}